2014-10-04 146 views

回答

0

這應該是訣竅: 負邊距放大黑匣子,填充以保持文本回到原來的位置。

這樣做有點骯髒,但這是最短的解決方案。

只需將它添加到你的CSS代碼結尾:

#contentmiddle div.title > h1{ 
    margin-left: -40px; 
    margin-right: -40px; 
    margin-top: -40px; 
    padding: 50px; 
    padding-bottom: 30px; 
} 

或者更短的一個:

#contentmiddle div.title > h1{ 
    margin: -40px; 
    padding: 50px; 
    margin-bottom: 20px; 
    padding-bottom: 30px; 
} 
+0

你是天才!它工作完美,你不知道我多麼感謝你! – Dani 2014-10-04 20:21:40

+0

很高興我能幫上忙。接受正確答案如何? :> – sEver 2014-10-04 20:55:08