Full width Divs

﹥>﹥吖頭↗ 提交于 2019-12-12 04:07:38

问题


Im working on a project that uses jQuery ScrollTo

I have 6 rows, each with 6 child divs , I would like each of these child divs to be 'full width' (edge to edge in the browser window).

Here is my fiddle: http://jsfiddle.net/RZjrV/2/

here is a live version: http://www.david-haigh.com/Website-Files/index.html

Cheers! ;-)


回答1:


in css you can do something like

.child_div {
  width: 100%;
}

but it looks like it might need to be done with jquery/js like this:

$(".child_div").width($(document).width())



回答2:


Alot of times you would want fixed sidebars but full body...heres my fiddle for tht

http://fiddle.jshell.net/asadpakistani/8sSMD/

Demo: http://fiddle.jshell.net/asadpakistani/8sSMD/show/



来源:https://stackoverflow.com/questions/10539248/full-width-divs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!