0

我正在尝试在我的博客上更改模板样式表中的边框,但我从来没有用 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

有没有快速达到预期效果的方法?感谢您的帮助!

4

2 回答 2

1

要在每个帖子周围添加边框,您可以尝试将其添加到类中.post

.post {
    border: 1px solid;
}
于 2010-04-24T02:45:58.593 回答
0

以下可以更改一些帖子属性。我用它来使角落变圆。

div.post{
  border:2px solid gold;
  border-radius:10px;
}
于 2018-09-19T23:50:40.740 回答