|
首页>编程技术>css教程> |
关于网页制作CSS 问题 |
|
Visited times , Welcome to Data Mining Forum & Data Mining Expert |
|
|
<title>无标题文档</title>
<style type="text/css">
<!--
-->
</style>
<link href="/red.css" rel="stylesheet" type="text/css">
<link href="/green.css" rel="stylesheet" type="text/css">
<link href="/blue.css" rel="stylesheet" type="text/css">
</head>
<body >
<p class="red"><a href="/7.htm" class="red">我的连接</a></p>
<p class="green"><a href="/7.htm" class="green">我的第2个连接 </a> </p>
<p class="blue"><a href="/7.htm" class="blue">我的第3个连接</a> </p>
</body>
</html>
为什么到后来浏览的颜色还是红色的那种啊 应该是三种颜色才对啊 是这样的吧:
<title>无标题文档</title>
数据挖掘论坛 <style type="text/css">
<!--
-->
</style>
<link href="/red.css" rel="stylesheet" type="text/css">
<link href="/green.css" rel="stylesheet" type="text/css">
<link href="/blue.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: red}
.style2 {color: green}
.style3 {color: blue}
-->
</style>
</head>
<body >
<p class="red"><a href="/7.htm" class="red style1">我的连接</a></p>
<p class="green"><a href="/7.htm" class="green style2">我的第2个连接 </a> </p>
<p class="blue"><a href="/7.htm" class="blue style3">我的第3个连接</a> </p>
</body>
</html>
欢迎访问:http://hi.baidu.com/%D1%C7%D1%C7yaya
|
|
|
|
|
[数据挖掘专家]
[数据挖掘研究院]
[数据挖掘论坛]
[数据挖掘实验室]
|
上一篇:什么是css
下一篇:关于用css来定义图片的边框的问题..
|
|
|
|