css缩写
DIV+CSS 2008/4/24 14:24:09 点击:不统计
关键词:css缩写,css简写,css写法,css的写法,如何写css
比如:边框的属性如下
border-width:1px;
border-style:solid;
border-color:#000;
可以缩写为一句:border:1px solid #000;
背景的属性如下:
background-color:#f00;
background-image:url(background.gif);
background-repeat:no-repeat;
background-attachment:fixed;
background-position:0 0;
可以缩写为一句:background:#f00 url(background.gif) no-repeat fixed 0 0;
字体的属性如下:
font-style:italic;
font-variant:small-caps;
font-weight:bold;
font-size:1em;
line-height:140%;
font-family:"Lucida Grande",sans-serif;
可以缩写为一句:font:italic small-caps bold 1em/140% "Lucida Grande",sans-serif;
注意,如果你缩写字体定义,至少要定义font-size和font-family两个值。
关键词:css缩写,css简写,css写法,css的写法,如何写css
·上一篇:引入样式表(css) >> ·下一篇:网页页眉(页脚) >>