Bootstrap作为完整的前端工具集,内建了大量的强大优雅可重用的组件,包括按钮(Button),导航(Navigation),标签(Labels),徽章(Badges),排版(Typography),缩略图(thumbnails),提醒(Alert),进度条(progress bar),杂项(....
分类:
其他好文 时间:
2014-08-25 14:50:14
阅读次数:
289
1. 1-9-1前后区别
$(function(){
$(":button").click(function(){
//prop与attr区别
//attr在1.9以后attr没有初始化的.attr("checked")返回都是undefined
console.log("prop1="+$(":checkbox:eq(0)").prop("checked"));
cons...
分类:
Web程序 时间:
2014-08-25 13:27:14
阅读次数:
196
这种button样式应该源自IOS,如果安卓上实现,则需要使用android上面的layer-list来实现。其实layer-list有点像framlayout,作用就是覆盖。
先说一下实现原理:先画一个矩形,就是我们所看到的红色边框。然后再画一个矩形将白色背景覆盖上面,设置android:left | right | top |bottom值,可以实现边框的大小。然后在button里面...
分类:
移动开发 时间:
2014-08-25 11:58:04
阅读次数:
160
?30dejulioPARAMANTENERLATENDENCIAHACIAARRIBAENELMERCADOENGUANGXICOCOONENETAPACALLBACKCHOQUE,EL30DEGanjianDISCOSINEMBARGOdesierta,elcontratoserefieraAGRADOTINY,reducirlarotación,093ROSE200yuanesparacerraren105.400;SEDACERRADOligeramente,LAINTENSIDADESd?BIL,..
分类:
其他好文 时间:
2014-08-25 02:23:04
阅读次数:
155
分页的跳转页面 要用到javascript 技术。首先 在input type='text' 文本框中写入要跳转的页面.接着点击"跳转" button按钮 触发点击事件点击事件如下: gage_go=window.document.getElementById('page_go'); page_g....
分类:
其他好文 时间:
2014-08-24 19:16:12
阅读次数:
266
在.h中声明属性如下
@property (retain, nonatomic) UIWindow *window;
@property (nonatomic, retain) UIView *aView;
@property (nonatomic, retain) UIButton *button;
在.m中实现如下
@implementation MAYAppDelegate...
分类:
移动开发 时间:
2014-08-24 14:15:12
阅读次数:
273
View.performClick();比如:private Button mButton01;mButton01 = (Button)findViewById(R.id.myButton1);mButton01.performClick();延时函数SystemClock.sleep(100);
分类:
移动开发 时间:
2014-08-24 12:50:22
阅读次数:
283
UIImage *ima = [UIImage imageNamed:@"1.png"];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
ButtonSubview * button = [ButtonSubview buttonWithType:UIButtonTypeSys...
分类:
其他好文 时间:
2014-08-24 11:40:02
阅读次数:
383
自从iOS7,UIView有了一个新的属性tintColor,它是用来在视觉上说明屏幕上哪些控件是活跃的或者有相关的活动。例如bar button items和tab bar items默认使用tintColor。如果一个view没有显示地指定tintColor,它将继承父视图的tintColor,因此在整个视图层次结构中将有一个连锁反应。最简单的情况是你可以通过一行代码来给整个APP指定一个颜色主题...
分类:
移动开发 时间:
2014-08-24 00:23:49
阅读次数:
430
经过几天的填坑,终于将现有的项目由cocos2dx 2.2.2移到cocos2dx 3.2,差点放弃3.2了,但在最后一刻,又把坑填平了。
cocos2dx 2.x到3.x是一个巨大的变化,可以算是完全不同。以前的类名,全是CC开头的,现在全部去掉了。很多enum都改用enum class了
所以,你知道2.x,对不起,你比小白学习3.x更难。你用2.x的做法用在3.x,那就全是坑了...
...
分类:
其他好文 时间:
2014-08-23 15:25:41
阅读次数:
214