Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 响应性背景图像引导3 asp.net 4.5_Html_Css_Twitter Bootstrap 3_Background Image - Fatal编程技术网

Html 响应性背景图像引导3 asp.net 4.5

Html 响应性背景图像引导3 asp.net 4.5,html,css,twitter-bootstrap-3,background-image,Html,Css,Twitter Bootstrap 3,Background Image,嗨,伙计们,我真的很感激得到响应的背景图像解决。关于这一点,我已经讨论了十几个答案/建议,但对我来说并不奏效。 我的挑战: 如果不以像素为单位明确指定“高度”,我的图像将不会显示,并且我认为高度会影响从桌面到移动设备的转换。我正在使用asp.NET4.5(带母版页)和Bootstrap3.0。 以下是我的html和css: <div class="container-fluid imgBackground"> </div> .imgBackground{ 背景图像:

嗨,伙计们,我真的很感激得到响应的背景图像解决。关于这一点,我已经讨论了十几个答案/建议,但对我来说并不奏效。 我的挑战: 如果不以像素为单位明确指定“高度”,我的图像将不会显示,并且我认为高度会影响从桌面到移动设备的转换。我正在使用asp.NET4.5(带母版页)和Bootstrap3.0。 以下是我的html和css:

<div class="container-fluid imgBackground">
</div>

.imgBackground{
背景图像:url('../Images/marine.jpg');
背景重复:无重复;
背景尺寸:包含;
高度:480px;

}

使用
背景尺寸:100%自动


演示:

使用
背景尺寸:100%自动

演示: