yfProgramer
学习不是应付生活,应付答案。是一种追求,一个理想。

1) 行内样式
通style属性实现
<p style="color:#0000ff;font-size:20px;text-decoration:underling;">内容</p>


2) 内嵌样式
通过<style type="text/css"></style>引入
<head>
<style type="text/css">
     p{
       xtlor:#0000ff;
       font-size:20px;
        ...
     }
</style>
</head>
<body>
   <p>内容</p>
</body>

3) 连接试
<head>
<link href="1.css" type="text/css" rel="stylesheet">
</head>

4) 导入试
<head>
<style type="text/css">
  @import url(1.css);
</style>
</head>

posted on 2011-03-24 08:51  yfProgramer  阅读(297)  评论(0编辑  收藏  举报