簡體   English   中英

Blogger模板:如何更改邊框CSS的顏色

[英]Blogger Template: how to change the color of the border css

我正在嘗試在博客上更改模板樣式表中的邊框,但是我從未使用CSS做任何事情,所以我有點茫然……我想保留深色背景,但是我想在帖子周圍創建一個顏色略有不同的小邊框。 如果我的猜測是正確的,那么我應該修改其中一些定義:

body {
  background:$bgcolor;
  margin:0;
  color:$textcolor;
  font: x-small "Trebuchet MS", Trebuchet, Verdana, Sans-serif;
  font-size/* */:/**/small;
  font-size: /**/small;
  text-align: center;
  }
a:link {
  color:$linkcolor;
  text-decoration:none;
  }
a:visited {
  color:$visitedlinkcolor;
  text-decoration:none;
  }
a:hover {
  color:$titlecolor;
  text-decoration:underline;
}
a img {
  border-width:0;
  }

這是一個帶有我正在使用的整個模板的小餡餅: http ://pastie.org/932535

有沒有一種快速的方法來達到預期的效果? 感謝您的幫助!

要在每個單獨的帖子周圍添加邊框,您可以嘗試將其添加到類.post

.post {
    border: 1px solid;
}

以下內容可以更改某些發布屬性。 我用它使角落變圓。

div.post{
  border:2px solid gold;
  border-radius:10px;
}

暫無
暫無

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

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