[英]remove A HREF inheritence in Div
我正在嘗試刪除似乎由嵌套div引起的href的繼承。
我正在使用的外部CSS沒有提及a:href或其他任何東西,當我重新排序div以使href成為最后一個嵌套的div時,它不會繼承(因為它是最后一個)。 有人可以打電話給lme,如果html中有一種方法可以刪除繼承,因為我需要按此順序。 謝謝
<div id = "logo">
<a href="index.php"><img src="./images/logo.jpg" alt="logo image">
</div>
<div id = "scrolltext">
<marquee behavior="scroll" direction="left">Here is some scrolling text... right to left!</marquee>
</div>
將代碼更改為此:
<div id = "logo">
<a href="index.php"><img src="./images/logo.jpg" title="logo image"> Link </a>
</div>
<div id = "scrolltext">
<marquee behavior="scroll" direction="left">Here is some scrolling text... right to left!</marquee>
</div>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.