0
我有一個問題,可能很容易,但我似乎無法弄清楚。我沒有下劃線的各個環節,除了上懸停,主動或聚焦:如何爲特定鏈接添加下劃線?
a {
text-decoration: none;
}
a:hover, a:focus, a:active {
text-decoration: underline;
}
現在,我在HTML結構是這樣的:
<div class="filter-wrapper">
<a href="">
<span class="filter-tag">
Tag Name
</span>
</a>
</div>
我不希望任何下劃線上懸停,只爲該div激活或關注。我如何實現這一目標?
我試着用文本修飾爲它做一個特殊的類:沒有,但它似乎沒有工作。我覺得很愚蠢。
'.filter-包裝一個'?? – DaniP 2015-02-23 17:08:07