2011-10-23 133 views
0

我有一个页面顶部有一个页眉,下面有一个表格(用asp.net gridview呈现),它横向延伸到页面可见区域的右侧,如本pircture:在页面上用水平滚动条显示全角的div

enter image description here

正如你所看到的,DIV(蓝色标题)只stetches到页面,而不是inlcudes水平滚动条的页面的整个宽度的可见宽度。
是否可以通过CSS拉伸div来包含页面的全部宽度,包括sctrollbar?

CSS:

<style type="text/css"> .queryHeader { background-color: #003163; color: #ffffff; font-family: Arial; Font-size: 11px; font-weight: bold; border-style: double; margin-bottom: 10px; padding: 2px; display: block; overflow: hidden; } </style> 

感谢,
阿维

+0

Aaahhh没有Internet Explorer! Killl iitt!另外:我们需要查看您的HTML/CSS,以便更好地理解为什么标题div不会跨越页面的宽度。 – Kyle

回答

0

经线DIV +表用一个DIV。

+0

对不起Royi,它仍然只在页面的可见宽度渲染div。 –