【发布时间】:2010-05-20 10:59:58
【问题描述】:
这对你们 CSS 人来说可能是一个垒球......
我有一个这样的网站:
<div id="header">
<span class="myheader">This is the name of my awesome site!!!!</span>
</div>
<div id="content">whole bunch of other stuff</div>
<div="sidemenu"><ul><li>something</li><li>something else</li></ul>
<div id="footer">Some footer stuff will go here....</div>
在我的 css 中,我有一些指令来格式化超链接:
a:link { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:active { text-decoration: underline; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:visited { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:hover { text-decoration: underline; color : #000; border: 0px; -moz-outline-style: none;}
a:focus { outline: none;-moz-outline-style: none;}
现在问题来了。在我的标题中,我有一些文本是一个链接,但我不想像网站中的所有其他链接一样格式化它。所以基本上我希望我的 a:link、a:hover 等忽略“标题”div 中的任何内容。我怎样才能做到这一点?假设我需要为那个 div/span 覆盖它?
【问题讨论】:
标签: css