1、让文本框 textarea 适应内容自动伸缩高度:textarea style="width:300px;
2、cursor:pointer 使鼠标变成手形
3、word-wrap:break-word;控制是否断词
4、word-break:keep-all;控制文本不断行
5、最后 finally,开始 first,虚线 dashed,内部里面的 inner,外面的外表的
outer,注释 note,热点 hotspot,branding品牌,翻页 pageturn,奇数行 add
6、透明设置:filter:alpha(opacity=50);-moz-opacity:0.5;opacity:0.5;
7、解决 IE中列表高度显示不正确的问题:
*html ul li{float:left;height:1%;}
*html ul li{height:1%;}
8、a:hover在 ie6及以下必须加链接才会有效;.over+javascript用在 th:hover
时 ie6及以下才能识别。
9、onfocus='this.blur()',onfocus 是获得焦点事件,blur 是移除焦点,换句
产
#content{heitht:200px;width:300px;overflow:auto;}
11、父 li设置了高度,而子 li的高度不同时,要先给 li:height:auto,在嵌
套的列表里,将父 li 浮动后,要将子 li的 float=none,子列表的所有内容都
float=none,父 ul设置了 margin时,子 ul要 margin=0,因为子会应用父的样
式
12、在写类名、id名尽量写的权级低一些,从尔避免后面覆盖要写很长
13、高度不适应:高度不适应主要发生在两个嵌套的对象中,特别当内层对象使
用 margin或 padding时,外层对象不能自动调节高度。解决方法:
1)在外层对象加 padding或 border,会使计算机重新计算高度
2)可以修改 html添加新的对象:
.css{heght:0px;overflow:hidding;}