這是我的CSS ...如何使用css爲body標籤設置背景圖片?
body{
background: url(<?php echo base_url()."images/1.jpg";?>) no-repeat center
center fixed;
background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
height: 100%;
position:absolute;
width:100%;
}
我想設置圖像作爲背景完全適合屏幕尺寸。現在圖像顯示爲完整背景,但圖像的某些較低部分未顯示。 那麼解決方案是什麼?
組後臺尺寸:100%100%,而不是蓋 – jbutler483 2015-03-03 10:18:34
請張貼此評論爲answer..It工作.. – 2015-03-03 10:21:36