css3-5 css3鼠标、列表和尺寸样式怎么用(文字有关的样式会被继承)
一、总结
一句话总结:css标签中文字有关的样式会被继承。由常用样式记起。
1、鼠标常用样式有哪些?
cursor:pointer;
2、列表常用样式有哪些?
list-style-type:none
list-style-type:decimal
list-style-type:square
3、css标签中文字有关的样式会被继承,其它样式会怎样?
也会被继承,但是一般无法生效,分情况,反正快标签的宽高行标签继承了也没用。
4、如何设置一个标签的最小宽度?
minwidth属性
12 ul{13 width:100%; 14 min-width:1200px;
5、如何去掉textarea的大小可变?
将resize属性设置为none
11 textarea{12 width:500px; 13 height:100px; 14 resize:none; 15 }
二、css3鼠标、列表和尺寸样式怎么用
1、相关知识
鼠标:
cursor:crosshair;cursor:crosshair;cursor:pointer;cursor:wait;cursor:text;cursor:default;cursor:help;列表(list-style-type):nonedisccirclesquaredecimallower-romanupper-romanlower-alphaupper-alpha 尺寸:width:1200px;height:500px;
2、代码
样式继承
1 2 3 4 5index 6 17 18 192025 26linux php linux
21linux linux php linux
22linux linux php linux
23linux linux php linux
24
textarea文本域
1 2 3 4 530 31index 6 17 18 19
min-width最小宽度
1 2 3 4 562 63index 6 32 33 34