a 伪类及首字母下沉

<!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">
a
{
display
:block;
height
:30px;
width
:100px;
line-height
:30px;
float
:left;
background
:url(picture/014304_btn_bg_hover.gif);
color
: #d84700;
}
a:first-letter
{ font-family: "microsoft yahei"; font-size: 40px; float: left; padding-right: 10px; line-height: 1; }
a:visited
{ color: #999; text-decoration: line-through; }

a:active
{ color: #F0F; }
a:link
{ color: #06F; text-decoration: none; }
a:hover
{
color
: #F00;
text-decoration
: underline;
background
:url(picture/014304_btn_bg.gif);
}
</style>
</head>
<body>
<div id="menu">
<p><a href="SADF.DS">这里是链接</a></p>
<p><a href="#">这里也是链接</a></p>
</div>
</body>
</html>

  

posted @ 2011-07-24 21:20  风吹屁股凉冰冰  阅读(248)  评论(0编辑  收藏  举报