·jQuery("#grid_id").jqGrid({·...·colModel:[·...·{name:'price',index:'price',width:60,align:"center",editable:true,formatter:currencyFmatter},·...·]·.....
分类:
其他好文 时间:
2014-07-22 22:56:35
阅读次数:
274
对html元素属性的增删改查操作
#attr{text-align:center;font-size:24px;color:white;background:#008000;width:400px;height:30px; }
.myclass{background:#828555;}
对html元素属性的增删改查操作
访问DIV属性
修改DIV属性
删除DIV属性
...
left join(左联接)返回包括左表中的所有记录和右表中联结字段相等的记录;right join(右联接)返回包括右表中的所有记录和左表中联结字段相等的记录;inner join(等值连接)只返回两个表中联结字段相等的行。
分类:
数据库 时间:
2014-07-17 00:18:17
阅读次数:
390
当需要css来缩放图片的时候,可以采用外层容器100%或者任意百分比,内层图片img tag 没有宽高,用sass写经过断点后的mixin中的样式就是这样:.workscon_section{ width: 100%; .left_art{ width: 100%; disp...
分类:
Web程序 时间:
2014-07-16 18:27:21
阅读次数:
200
目录语法作用使用定位的条件总结语法position : static absolute relative(static、absolute、relative常用值)。参数static :无特殊定位,对象遵循HTML定位规则。absolute :将对象从文档流中拖出,使用left,right,top,b...
分类:
Web程序 时间:
2014-07-16 18:10:54
阅读次数:
237
On Android 4.4
遇到过这样的问题:
注意到,上面的ActionBar部分的左右各有48像素的padding。
要了解该问题的成因,要首先了解其结构:
该页面的Activity是一个PreferenceActivity,是个三级页面,是通过上一个PreferenceActivity调用startWithFragment启动的;该页面的内容是放置了一个Fragmen...
分类:
其他好文 时间:
2014-07-16 14:06:12
阅读次数:
195
UIImage *image = [[UIImage imageNamed:@"test.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)];其中Insets这个参数的格式是(top,left,bottom,right)...
分类:
移动开发 时间:
2014-07-16 14:00:47
阅读次数:
216
No matter left shift or right shift, the result's sign should always be the same as its left operand.
By default, const numbers in C/C++ is signed.
-Wsign-compare
{
unsigned int j = 3;
...
分类:
其他好文 时间:
2014-07-16 12:59:21
阅读次数:
238
#include int a[101], n;void quicksort(int left, int right) { int i,j,t,temp; if (left>right) return; temp = a[left]; i=left; j=r...
分类:
其他好文 时间:
2014-07-16 12:13:23
阅读次数:
196
问题描述:
在设计一个简单的左右布局页面时,发现一个比较诡异的布局问题。界面采用左右布局的方式。是使用左侧div浮动、右侧div设置 margin-left方式实现效果。实现后在chrome浏览器中正常浏览(如图1)的布局界面在ie浏览器无法正常显示(如图2)。
图1
图2
解决问题:
看了一些文章以后知道,在ie浏览器中table宽度设置了百分比以后,需要对外部...
分类:
其他好文 时间:
2014-07-16 11:36:11
阅读次数:
167