<!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>
a:link{color:black;}
/*未访问过连接初始颜色*/
a:visited{color:pink;}
/* 访问过的链接的颜色*/
a:active{color:#3F6;}
/*鼠标按下时链接的颜色*/
a:hover{color:#C33;}
/*鼠标移入(悬停的)颜色*/
/*伪类,给元素添加特殊的效果*/
#div1{
width:100px;
height:100px;
color:red;
/*文本颜色*/
text-align:left;
/*文本对齐方式*/
text-indent:32px;
/*首行缩进 新的单位em表示几个字的大小*/
text-decoration:underline;
/*下划线*/
letter-spacing:10px;
/*字母间距*/
word-spacing:10px;
/*根据空格分词*/
}
</style>
</head>
<body>
<div id="div1">
aaa <br />
<a href="https://www.baidu.com">超链接</a>
</div>
</body>
</html>
a标签超链接使用
最新推荐文章于 2024-08-30 16:48:59 发布