Bootstrap里的grid system里面 (源代码) 有这么一段,[class*="span"] { float: left; margin-left: @gridGutterWidth;}用RECESS去跑会看到提示:Universal selectors should be avoi.....
分类:
Web程序 时间:
2014-12-09 13:45:30
阅读次数:
181
e.stopPropagation()阻止事件冒泡 冒泡事件测试 我们先看这段代码: 我们会看到这样的情况:span alert -> td alert -> table alert。这就叫事件冒泡。就是从下到上,从里到外,事件依次触发。有的时候我们不希望事件冒泡咋办? 如果想获得事件相...
分类:
Web程序 时间:
2014-12-09 13:40:04
阅读次数:
136
无标题文档.div1{ width:420px;}.div1 li { list-style: none; float:left; border:1px solid #EAF3FA; background:#FBFCFF; margin:10px; width:120px; height:40px; line-height:40px; padding-left:10px;}.div span{pa...
分类:
Web程序 时间:
2014-12-08 17:44:19
阅读次数:
206
原文地址:http://blog.sina.com.cn/s/blog_60b35e8301019hk2.html1、inline元素(比如span,em等)的display属性设置为inline-block时,所有的浏览器都支持;2、block元素的display属性设置为inline-block...
分类:
其他好文 时间:
2014-12-08 13:46:45
阅读次数:
125
.aspx代码如下:
#tbl_summary{ border:1px solid black;}
#tbl_summary td,#tbl_summary th
{ padding:10px; border:1px solid silver;}
td span...
分类:
Web程序 时间:
2014-12-08 12:27:30
阅读次数:
225
下面介绍JQUERY的父,子,兄弟节点查找方法jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class")jQuery.parents(expr),类似于jQuery.parents(e...
分类:
其他好文 时间:
2014-12-08 12:19:32
阅读次数:
216
1、span.class1.class2会选择同时指定class1和class2的元素
2、[href]匹配所有具有href属性的元素
3、[class~=“class2”]空格隔开的多个属性
4、[lang|=“en”]匹配连字符隔开的分割包含一个同名字符...
分类:
Web程序 时间:
2014-12-05 17:29:44
阅读次数:
261
在CSS中,使用display属性来定义盒的类型。总体来说,盒类型分为两类:inline和block。如div默认是block,span默认是Inline。可以通过display修改默认的表现方式。
block and inline elements
<style ty...
分类:
Web程序 时间:
2014-12-05 10:58:33
阅读次数:
301
在CSS中,使用display属性来定义盒的类型。总体来说,盒类型分为两类:inline和block。如div默认是block,span默认是Inline。可以通过display修改默认的表现方式。 block and inline elements div元素1 ...
分类:
Web程序 时间:
2014-12-05 10:45:17
阅读次数:
252
A Famous Music Composer
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
Mr. B is a famous music composer. One of his most famous work was his set of preludes. These 24 pieces span the 24 musical ...
分类:
其他好文 时间:
2014-12-04 06:28:58
阅读次数:
223