2015-09-20 48 views
-1

我不明白为什么这个表格不能覆盖Chrome中的整个页面。它在IE中正常工作。该页面是购物车页面,并具有5​​列的表格。是否有可能使用CSS来做到这一点? https://jsfiddle.net/bc10ggc6/为什么这张表在chrome中的宽度不是100%?

<div class="header-wrapper"> 
<h1>I'm not going to add the code because it's too large and stackoverflow are asking for too much text</h1> 
</div> 
+0

你的表是100%的宽度,但内容不响应 – Chris

+0

如何让他们响应? – Grant9196

回答

1

看这个fiddle

您的图片破坏你的布局。

添加此规则,以你的形象:

img{ 
    max-width: 100%; 
    max-height: 100%; 
} 
+0

我有媒体查询设置,但他们不相关 – Grant9196

+0

做你的尝试小提琴? – Chris

+0

你这样做的方式不是移动友好的 – Grant9196