日期:2014-05-17 浏览次数:20805 次
p { color : #800080; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; }
pt | points |
pc | picas |
px | 像素 |
em | ems |
ex | exes |
% | 百分比 |
p { font-family: Verdana, sans-serif; }
a:link, a:visited { text-decoration : none; }
a:link, a:visited, a:hover, a:active { text-decoration : underline; color : #6A5ACD; background-color : transparent; }
. a:link, a:visited { text-decoration : underline; color : #6A5ACD; background-color : transparent; } a:hover, a:active { text-decoration : underline overline; color : #191970; background-color : #C9C3ED; } .boxout { color : #FFFFFF; background-color : #6A5ACD; } .boxout a:link, .boxout a:visited { text-decoration : underline; color : #E4E2F6; background-color : transparent; } .boxout a:hover, .boxout a:active { color : #191970; background-color : #C9C3ED; }
/* 方法1 使用first-child选择器 */ li:first-child { color : red; } /* 方法2 CSS选择器 */ li.unusual { color : red; }
h1.pg34 { background-color : #ADD8E6; color : #256579; font : 1.6em Verdana, Geneva, Arial, Helvetica, sans-serif; /* 注意:为标题背景设置合理的空白 */ padding : 0.2em; }
<div> <h1 class="pg35"> Chinese-style Stuffed Peppers </h1> Below, I've created a CSS rule for all te level-one headings in a document. The result is shown in Figure 2.11. hello, world...... </div> <div> <h1 class="pg36"> Chinese-style Stuffed Peppers </h1> Below, I've created a CSS rule for all