首页 > 应用开发 > > 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" />
<title>无标题文档</title>
<style type="text/css">
div#box{
width: 293px;
height: 313px;
padding-top: 12px;
}
div#box:hover{
border: 1px dotted #7F7F7F;
}
div#box img{
width: 262px;
height: 155px;
display: block;
margin: 0 auto;
}
div#box p span.biaoti{
font-size: 14px;
color: #333333;
line-height: 24px;
font-weight: bold;
text-decoration: none;
}
div#box p span.text{
text-decoration: none;
}*/
</style>
</head>
<body>
<div id="box">
<a href="">
<img src="mtcaidan.jpg" class="pic">
<p><span class="biaoti">【万达广场】二回熟</span><br />
<span class="text">新品双人餐,提供免费WiFi</span>
</p>
</a>
</div>
</body>
</html>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2035/viewspace-3148883/ ,如需转载,请注明出处,否则将追究法律责任。