2013-06-26 107 views
0

爲什麼在嘗試使用Reveal.js時會出現重疊行?如何避免線條重疊?

的默認值是

.reveal .slides>section>section { 
display: none; 
position: absolute; 
width: 100%; 
padding: 20px 0px; 

z-index: 10; 
line-height: 1.2em; /* the default value 
font-weight: normal; 

這裏是結果(不能上傳ITI這裏,imghur BUG)

http://s24.postimg.org/5rawfbigl/image.jpg

但可悲的是,我把所有的內容搞混!所以我將1.2更改爲更類似23以獲得正常顯示。

我做錯了什麼?

回答

1

位置絕對不關心目標區域是否有其他元素。嘗試更改爲

position:relative;

+0

對不起,dident改變:( –

+0

這裏是CSS:https://github.com/hakimel/reveal.js/blob/master/css/reveal.css#L589 –

+0

這裏是答案的https:/ /github.com/hakimel/reveal.js/issues/512#issuecomment-20084534 –