-1
這裏是我的網站:http://oldtimesdaily.tumblr.com/標題CSS不工作
在我的索引我的文章的標題是鏈接,單後卻沒有。但我希望它們看起來一樣,所以我將兩個類都加入了class =「Title」,但它只適用於索引頁。
這裏是
CSS
.Post a.Title {
display:block;
line-height: 1.4;
color: #222;
margin-bottom:22px;
font-family:QuicksandBold, Helvetica, Arial, sans-serif;
margin: 0px 25px 10px; /* Post Title */
font-weight: bold;
letter-spacing: 2px;
text-transform:uppercase;
text-decoration:none;
border-bottom:0px;
}
.Post a.Title:hover {
color: #300000 ;
}
.Post.Single a.Title {
margin-bottom:11px;
}
和HTML
<div class="Text">
{block:Title}
{block:IndexPage}
<a href="{Permalink}" target="_blank" class="Title">{Title}</a>
{/block:IndexPage}
{block:PermalinkPage}
<span class="Title">{Title}</span>
{/block:PermalinkPage}
{/block:Title}
修復它(類的第一個字母和id不應該大寫,也不是數字,還是傳統的,否則有些瀏覽器wo'nt應用它們) –
哦,謝謝,不知道關於這一點) – user2534878