码迷,mamicode.com
首页 > Web开发 > 详细

CSS基础

时间:2014-11-15 06:36:51      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   sp   div   on   

 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基础

标签:style   blog   http   io   color   ar   sp   div   on   

原文地址:http://www.cnblogs.com/bfshm/p/4098644.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!