Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.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 Div容器不适合内容_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html Div容器不适合内容

Html Div容器不适合内容,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,Div容器不适合内容 我制作了一个包含主要组件的页面版本与您共享,并尝试解决此问题。好吧,问题是当你水平展开页面时,图像会在底部被剪切。我想离开页面这样,因此没有视觉变化。 附言:我正在使用引导 .image-container{ height: 100%; width: 100%; position:absolute; } 我为图像添加了一个继承 .image-container img{ height:inherit; width:100%; } 是否真的

Div容器不适合内容 我制作了一个包含主要组件的页面版本与您共享,并尝试解决此问题。好吧,问题是当你水平展开页面时,图像会在底部被剪切。我想离开页面这样,因此没有视觉变化。 附言:我正在使用引导

.image-container{
  height: 100%;
  width: 100%;    
  position:absolute;
}

我为图像添加了一个继承

.image-container img{
   height:inherit;
   width:100%;
}

是否真的需要绝对定位图像容器?另外,jQuery代码需要模块化;这没有意义如果我删除位置:绝对动画的工作原理与以前不同。试试看…你知道bootstrap有一个非常好的滑块。你应该调查一下。这会节省你一点时间