关于网页制作用CSS处理文字
- 提问者网友:喧嚣尘世
- 2021-07-31 14:43
- 五星知识达人网友:骨子里都是戏
- 2021-07-31 16:07
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
<!--
body {
text-align: center;
color: #90F;
}
a:link {
color: #60F;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #6F0;
}
a:hover {
text-decoration: underline;
color: #F60;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>
<a href="#">主页</a> |
<a href="#">日记</a> | <a href="#">相册</a> | <a href="#">留言</a>
</body>
</html>
朋友先把上面这段代码复制到DW里运行看哈是不是你想要的效果?
如果是,那么下面这段代码就是CSS的定义样式
<style type="text/css">
<!--
body {
text-align: center;
color: #90F;
}
a:link {
color: #60F;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #6F0;
}
a:hover {
text-decoration: underline;
color: #F60;
}
a:active {
text-decoration: none;
}
-->
</style>
希望你满意!
- 1楼网友:舍身薄凉客
- 2021-07-31 19:19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <style type="text/css"> a:link,a:visited{ color:#00FFFF; text-decoration:none; } a:hover{ color:#FF0000; } </style> </head>
<body> <a href="#">测试</a> </body> </html>
- 2楼网友:深街酒徒
- 2021-07-31 18:32
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title>
<style type="text/css"> <!-- .style1 {color: #0000FF} .style1:hover {color:#FF0000} --> </style> </head>
<body> <a href=" http://www.qq.com" class="style1 STYLE1">QQ首页</a> </body> </html>
- 3楼网友:玩家
- 2021-07-31 17:24
<style type="text/css">
a :link {color:#00f;}
a :visited {color:#00f;}
a :hover {color:#f00;}
</style>
<a href="">测试文字 </a>