我正在尝试更改my blog上模板样式表中的边框,但我从未对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
有没有快速的方法来达到预期的效果?感谢您的帮助!
答案 0 :(得分:1)
要为每个帖子添加边框,您可以尝试将其添加到课程.post
:
.post {
border: 1px solid;
}
答案 1 :(得分:0)
以下内容可以更改某些帖子属性。我用它使圆角变圆。
div.post{
border:2px solid gold;
border-radius:10px;
}