2014-10-04 94 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