使用CSS控制页面的4中方法

1、行内样式

<p style = "font-size:20px; color:#0000FF;">显示内容</p>

2、内嵌式

写在<head></head>中间

<style type = "text/css">

<!--

p{

    color:#0000FF;

    font-size:20px;

}

-->

</style>

3、链接式:把外部的CSS文件导入到HTML文件中

<link href = "myCss.css" type = "text/css" rel = "stylesheet">

4、导入样式:把外部CSS文件中的样式导入到<style>之中

<style type = "text/css">

<!--

@import url("1.css");

-->

</style>


类别:Css 查看评论
文章来源:http://hi.baidu.com/wxmilk/blog/item/f2dd21730da47d1a8701b0cc.html
posted @ 2008-10-08 22:35  Milk  阅读(204)  评论(0编辑  收藏  举报