line-height这个属性是被ie6所支持的。当是当一个父级元素内的子元素,包含了文字,且文字和img,input,label,span这些内联元素连接在一起的时候,你对父级元素设置line-height是没有任何效果的。很多情况下,我们希望文字和表单元素(比如input输入框)垂直居中,在设置...
分类:
其他好文 时间:
2014-05-09 05:05:16
阅读次数:
238
Everyoperatingsystemmusthavesomeortheotherwaytoinstallaprogram.What‘simportantisthefactthattheusermustnotbegiventheresponsibilityofmanagingtheoverheadinvolvedintheinstallationoftheprogram.Youwouldask,what‘stheoverheadinvolvedininstallingaprogram?Yesthereare..
分类:
其他好文 时间:
2014-05-08 16:52:53
阅读次数:
440
设想这样一种情况
一个div里面有个span元素 ,当鼠标单击span时,这个事件算是谁的? div还是span?
准确的说两个都触发了,这种认可大家都同意,事实就是这样的,
第二个问题来了,这个事件应该有个先后顺序 ,先触发span还是div?
早期就有两个主流的浏览器厂商各执己见,IE认为,这个事件首先触发span,然后依次往父节点传递,最终传递到document,(这个过程称...
分类:
其他好文 时间:
2014-05-08 15:56:53
阅读次数:
282
i am bug
.bug{height:60px;line-height:60px;background-color:#999;} .bug
span{display:inline-block;width:100px;height:20px;background-color:#ff0000;v.....
分类:
其他好文 时间:
2014-05-08 14:47:23
阅读次数:
293
$("div span") 选取里的所有元素$("div >span")
选取元素下元素名是的子元素$("#one +div") 选取id为one的元素的下一个同辈元素
等同于$(#one).next("div")$("#one~div") 选取id为one的元素的元素后面的所有同辈元素 等同于$....
分类:
Web程序 时间:
2014-05-08 12:06:18
阅读次数:
620
Business logic=============业务逻辑=============From
Wikipedia, the free encyclopedia来自Wikipedia,自由的百科全书In computer software,
business logic or domain log...
分类:
其他好文 时间:
2014-05-07 13:00:23
阅读次数:
588
很多话说得很透彻,把一些觉比较精彩的摘抄一下。... It seems to me that if
the authors I studied were writing today, they would agree with the following
characterization: Scie...
分类:
其他好文 时间:
2014-05-07 12:57:54
阅读次数:
491
A Personal View of Computer Science at
Berkeley赤裸裸的吊炸天
分类:
其他好文 时间:
2014-05-07 12:48:22
阅读次数:
210
div > span 和 div span 的区别 ,即有箭头和没箭头的区别div >
spanspan 是 div 的下一层级关系在这种情况下找得到span元素: 但这种情况找不到 而 元素之间没有箭头的 div span 在这两种情况下...
分类:
Web程序 时间:
2014-05-07 11:15:33
阅读次数:
1194
Unique MSTTime Limit: 3000/1000MS (Java/Others)
Memory Limit: 65535/65535KB (Java/Others)Given a connected undirected graph,
tell if its minimum span....
分类:
其他好文 时间:
2014-05-07 00:55:18
阅读次数:
530