在宽度调整大小期间,wordpress网站不会在桌面浏览器上保持居中(wordpress site won't stay centered on desktop browser during

编程入门 行业动态 更新时间:2024-10-27 21:12:44
在宽度调整大小期间,wordpress网站不会在桌面浏览器上保持居中(wordpress site won't stay centered on desktop browser during width resize)

网站正在进行中: 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;

更多推荐

本文发布于:2023-07-24 08:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1243440.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:会在   宽度   器上   大小   桌面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!