我有这个html代码,我需要隐藏“BY”单词和“USERNAME”并仅显示用户的“AVATAR”。
我只需要使用 CSS 来制作它,但我找不到正确的选择器来制作它。
这可能吗?谢谢!
<div class="entry-meta">
<span class="byline">by <span class="author vcard"><a class="url fn n"
href="path-to-username-profile" title=
"View all Downloads by username">username <img alt="" class="avatar"
height="50" src= "path-to-jpg.jpg" width="50"></a></span></span>
</div>
最佳答案
.entry-meta { font-size: 0; }
关于html - 隐藏元素中除图像之外的所有内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37025640/