【发布时间】:2013-08-22 12:26:10
【问题描述】:
我有一个样式,用于设置导航栏上的链接样式,但它设置了网站中所有其他链接的样式,因此我将 div“菜单栏”定义为链接前面的选择器并访问了选择器,但它仍然设置所有样式网站中的链接。任何解决方案将不胜感激。
CSS:
#menubar a:link, a:visited
{
border-top-width: 1px;
display: block;
font-weight: bold;
color: #000000;
background-color: #EFF1EB;
width: 180px;
text-align: center;
padding: 4px;
text-decoration: none;
text-transform: uppercase;
border-style: solid;
border-color: #638529;
font-family: Arial, Helvetica, sans-serif;
border: 1px;
position: fixed;
}
【问题讨论】:
标签: html css hyperlink stylesheet