HTML
<div class = "shared_link_post_container">
<a id="{{post.status_id}}_shared_link_img" href="{{post.link}}" target="_blank">
<img src="{{post.picture}}">
</a>
<a id="{{post.status_id}}_shared_link_text" class="shared_link_text" href="{{post.link}}" target="_blank">
<div id="{{post.status_id}}_clickable_text_box" class="clickable_text_box">
<br>
<span class="shared_link_name">{{post.name}}</span>
<br>
<span class="unlinked shared_link_caption">{{post.caption}}</span>
<br>
<br>
<span class="unlinked shared_link_description">{{post.description}}</span>
</div>
</a>
</div>
unlinked
当链接悬停在上面时,我希望类的链接没有下划线。我试过了:
CSS
.unlinked {
color: gray;
font-weight: normal;
text-decoration: none;
}
这似乎不起作用,主要是因为我的unlinked
班级应该是a
班级。但是,我不想删除所有链接的下划线,只删除unlinked
类。