dreamweaver下划线
- 作者: 赵日天的弟赵日地
- 来源: 51数据库
- 2020-09-26
<!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" />
<style type="text/css">
p{color:green}
u{color:red}
</style>
<title>2</title>
</head>
<body>
<u><p>文本文档</p></u>
<a ></body>
</html>
<u></u>是定义下划线文本的,但是在html5的标准中,这个标签已经被淘汰了不能使用了,在html4中是可以的。
要设置下线的颜色,还有方法的,用下边框代替下划线,设置下边框的颜色及可以了。
用Css样式做
<!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" />
<style type="text/css">
p{color:green}
u{color:red}
</style>
<title>2</title>
</head>
<body>
<u><p>文本文档</p></u>
<a ></body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
p{color:green}
u{color:red}
</style>
<title>2</title>
</head>
<body>
<u><p>文本文档</p></u>
<a ></body>
</html>
<u></u>是定义下划线文本的,但是在html5的标准中,这个标签已经被淘汰了不能使用了,在html4中是可以的。
要设置下线的颜色,还有方法的,用下边框代替下划线,设置下边框的颜色及可以了。
用Css样式做
<!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" />
<style type="text/css">
p{color:green}
u{color:red}
</style>
<title>2</title>
</head>
<body>
<u><p>文本文档</p></u>
<a ></body>
</html>
推荐阅读
