元素的背景是内容、内边距和边框区的背景。css中:width 和 height 指的是内容区域的宽度和高度。增加内边距、边框和外边距不会影响内容区域的尺寸,但是会增加元素框的总尺寸。bootstrap中:width 和 height 指的是包含border、padding、element的框的总尺寸...
分类:
Web程序 时间:
2014-09-11 19:03:42
阅读次数:
238
总结:1.不使用CSS表达式2.将css从javascript中抽离,如element.style.color = "red"; element.style.cssText = "color: red; left: 10px;"这种方法将来重新定义样式的时候修改起来很复杂,最佳方法仍是操作css的c...
分类:
其他好文 时间:
2014-09-10 12:14:50
阅读次数:
196
if you need append some string to element and need set some attribute on these string at the same time,you'b better use appendTo funtion.because you c...
分类:
移动开发 时间:
2014-09-10 12:14:20
阅读次数:
183
之前写数据校验时忘记写dwz里的新增自定义校验,只要找到dwz.min.js文件的 if($.validator){ 的位置,在里面写上自己的校验正则表达式即可,我加了两个正则表达式,mac或mms 代码如下
if($.validator){
$.validator.addMethod("alphanumeric",function(value,element){
return this....
分类:
其他好文 时间:
2014-09-10 10:56:30
阅读次数:
209
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-09-10 09:26:30
阅读次数:
198
1、注意:a[-1.23] = true; // This creates a property named "-1.23"a["1000"] = 0; // This the 1001st element of the arraya[1.000] // Array index 1. Same as...
分类:
编程语言 时间:
2014-09-10 00:21:19
阅读次数:
173
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2014-09-09 18:01:59
阅读次数:
146
Extjs提供了非常完善的DOM操作方法,可以方便的操作DOM。另外Extjs还可以方便的查询DOM元素,并把这些DOM元素封装成Ext.Element对象,通过Element对象我们可以操作DOM元素。下面来看一下Extjs操作DOM的几个类:
分类:
Web程序 时间:
2014-09-09 17:42:59
阅读次数:
210
Extjs提供了非常完善的DOM操作方法,可以方便的操作DOM。另外Extjs还可以方便的查询DOM元素,并把这些DOM元素封装成Ext.Element对象,通过Element对象我们可以操作DOM元素。下面来看一下Extjs操作DOM的几个类:
分类:
Web程序 时间:
2014-09-09 17:36:19
阅读次数:
175
border缩写/*缩写前*/element{ border-top-width:1px; border-top-style:solid; border-top-color:#cccccc;}element{ border-top:1px solid #cccccc; ...
分类:
Web程序 时间:
2014-09-09 15:33:28
阅读次数:
269