网页制作DIV+CSS工作心得体会 |
|
|
个浏览器。(这个很重要!几乎必须要写,可以根据需求修改!) 3、CSS缩写 a) Margin、padding(一样的缩写形式)的缩写如: 顺时针 margin:上 右 下 左 简写: margin:0 auto=margin:0 auto 0 auto; margin:0 auto 10px=margin:0 auto 10px auto; 所以 margin:10px 0 auto;这个就等于margin:10px 0 auto 0; B) 背景(background) 背景(background)属性可能会包含背景色、背景图、背景图的位置和背景图重复方式的参数,如: background-image: url(“logo.png”); background-position: top center; background-repeat: no-repeat; 其实可以写成:background: url(logo.png) no-repeat top center;(顺序可以变,属性之间要空格,不然I E6不识别) C) Borders(边框) 如果你想声明一个1像素宽的实线黑色边框,可能会写成: border-width:1px; border-style:solid; border-color:#000; 其实可以写成:border:1px solid #000; D)文字 文字属性也有很多可能会用到的属性值,像背景一样,你可能会声明这种复杂的文字样式: font-style:italic; font-wEight:bold; font-size:1em; line-height:150%; font-family:宋体, Arial, sans-serif; 其实可以优化成一行:font:italic small-caps bold 1em/150% 宋体, Arial, sans-serif;
上一页 [1] [2] [3] [4] 下一页 |
|
|
|
上一个论文: 《班主任工作》学习体会 下一个论文: 参加市教育工作会议心得体会 |
|