我在這個網站(和其他人)做了大量的研究,但我不能解決我的問題... 在這個網站上:http://vintagebike.fr/t%C3%A9t%C3%A9/ 我希望每個部分涵蓋100%的視口的高度...... 我設置在最小高度:100%eachs ... 我設置了HTML,身體的高度:100%部分覆蓋100%的視口高度
一些代碼:
html{ overflow-y:scroll; font-size:100%; font-family:Arial,Helvetica,sans-serif; line-height:1.5; background:url(...) repeat top left; font-color:#353232; height:100%;}
body{ height:100%; background:#fff; float:left; width:100%; font-size:.8125em; color:#353232;}
#about{background-color: #cde2f3;position:relative;min-height:100%;}
#elements{background-color: #fbe2e4;position:relative;min-height:100%;}
#pourqui{background-color: #ffedc1;position:relative;min-height:100%;}
#contact{background-color: #ddeee4;position:relative;min-height:100%;}
如果我設定的高度以像素爲單位...
我真的不明白...
在此先感謝。
(對不起,我的英語)
你能否提供一些代碼? – UpHelix
對不起。我編輯了我的第一條消息... – Theoalran