网站正在进行中: http : //www.modernfuture.net/wordpress
我几个小时以来一直把头靠在墙上 - 当我调整浏览器宽度(通过拖动浏览器窗口的右调整大小手柄)时,我的网站维护了我想要的大约1/8的浏览器窗口的响应中心效果尺寸。 然而,当我将浏览器的右侧窗口调整大小句柄从右到左超过此点(大约是浏览器窗口宽度的1/8,当浏览器窗口占据我的1080p屏幕的整个宽度时)我的网站(标题,内容) ,和页脚)停止居中,调整大小的句柄在网站上播种,而不是保持我想要达到的响应中心。
我试过应用“margin:o auto;” 单独和同时欺骗body类和包装类,但它不会产生所需的结果。
我真的对这里的想法感到茫然。 有人可以提供一些见解吗? 谢谢!
Site in progress: http://www.modernfuture.net/wordpress
I've been banging my head against the wall over this for hours - when I resize my browsers width (by dragging the browser window's right resize handle) my site maintains that nice responsive centered effect I want for roughly 1/8th of my browsers window size. However when I drag the browser's right window resize handle from right to left past this point (roughly 1/8th the width of the browser window, when the browser window is taking up the full width of my 1080p screen) my site (header, content, and footer) stops staying centered and the resize handle crops over the site rather than maintaining the responsive centering that I'm looking to achieve.
I've tried applying the "margin: o auto;" trick to the body class and the wrapper class individually and simultaneously, but it doesn't yield the desired results.
I'm really at a loss for ideas here. Can anyone offer some insight please? Thanks!
最满意答案
你需要从body类中删除宽度并且margin也需要设置margin:0px;
You need to remove the width from body class and margin also need to set margin:0px;
更多推荐
发布评论