在我为答案帖子添加特定块之前,我的答案帖子的 css 就像其他帖子一样工作。.text blockquote { border: 3px solid #fff; padding: 0px 10px;}
但是,直到我添加:设置文本帖子的样式后
,此块才开始工作
。
我是 html/css 编码的新手,我不知道所有具体的 tumblr 事情,所以请原谅凌乱的布局和迂回的编码。
我的 tumblr 的网址是:ellenosaurus.tumblr.com,这样您就可以看到问题所在。
我的主题的整个代码在这里:http
: //pastebin.com/AJPab7BK 我的回答帖子的 html 是:
{block:Answer}
<div class:"answer">
<div class="asker">{Asker}</div> asked: <div class="question">{Question}</div>
{Answerer}
{Answer}
{Replies}
</div>
{/block:Answer}
我的答案帖子的CSS是:
.answer {
background: rgba(251, 230, 202, 1);
margin: 40px auto;
padding: 20px;
width: 500px;
border: 2px solid #fff;
}
.answer blockquote{
border-left: 3px solid #fff;
padding: 0px 10px;
}
.answer a {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-weight: normal;
color: rgb(52, 47, 20);
text-decoration: none;
}
.asker {
font-weight: bold;
}
.question {
font-weight: normal;
display:block;
}