0
我試圖在聚焦的錨定標記內的span
內部創建樣式。聚焦的錨定標記內的跨度樣式
重點文本應該收到underline
。重點需要通過製表來實現。
但它不工作。
可能有人請大家看看,讓我知道我是什麼失蹤
body > div.afterLink > a > span:focus {
border-bottom: 2px solid green;
}
<div class="beforeLink">
<span tabIndex=-1>Go to Google</span>
</div>
<div class="titleLink">
<a class="download" target="_blank" href="www.google.com" title="Click here">
<span>Go to Google</span>
</a>
</div>
<div class="afterLink">
<a class="download" target="_blank" href="www.google.com" title="Click here">
<span>Go to Google</span>
</a>
</div>
謝謝!這有幫助 – Umar