首页 > 代码库 > CSS基础

CSS基础

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <link href="Css.css" rel="stylesheet" type="text/css"> 6 <title>无标题文档</title> 7 </head> 8  9 <body>10 <p style="font-size:18px; color:#F00">示例</p>11 <p>示例2</p>12 <a href="www.baidu.com">百度</a>13 <ul class=list1>14 <li>示例2222</li>15 </ul>16 </body>17 </html>

 

 1 @charset "utf-8"; 2 /* CSS Document */ 3 body{background-color:#CCC; backgrount-image:url();} 4 p{font-family:黑体; font-size:30px; font-style:italic; font-weight:bold; text-decoration:overline;  5   text-indent:40px; letter-spacing:15px; line-height:35px; text-align:center; background-color:#99C;} 6 a:link{color:#F00;} 7 a:visited{color:#00F;} 8 a:hover{color:#0F0;} 9 a:active{color:#FF0;}10 li{list-style-type:circle;}

 

CSS基础