簡體   English   中英

如何從鏈接到其他網站的特定圖像中刪除“邊界底部”?

[英]How do I remove the “border-bottom” from a specific image that links to other websites?

我在網站上添加了一個在子標題中顯示邊框底部的按鈕。 這似乎是因為CSS將邊框底部賦予該子標題框中的所有超鏈接。 但是,我只想從圖像(Twitter,RSS)中刪除邊框底部。 我嘗試了各種方法,但均未成功。 我最近的嘗試涉及在邊框底部添加自定義CSS: #subheader a { border-bottom: none; } #subheader a { border-bottom: none; }

這是我的網站: http : //edhaj.tumblr.com/

謝謝你的幫助!

在您的情況下,將選擇器從#subheader a更改為#subheader > a可以解決問題,因為您想要賦予邊框底樣式的鏈接是具有id subheader的div的直接子節點,而其他鏈接元素則不是。

好吧那些圖像在您的addthis框中,所以您嘗試了:

#subheader .addthis_toolbox a {border-bottom: 0 none;}

像這樣的新規則應該起作用:

#subheader .addthis_toolbox a {
  border-bottom:none;
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM