我在我的主页上使用自定义主题 (WP)。当我使页面更具响应性时,它以某种方式弄乱了一切,我不知道怎样才能公平。
页面现在不知何故比窗口大,这导致 x 溢出和一个不包含任何内容的滚动条。有点难以解释,所以这里是屏幕截图和实时 View :
最佳答案
试试这个,
在您的 style.css 行号 268,285,289 中有问题。
在 css 下解决这些问题。
更改这些 CSS:
#selection .select .select-bg {
/*left: -50px; Remove this line and Add Below lines */
left:0;
right: 0;
margin: 0 auto;
}
#selection .select .select-bg-container {
left:50% /*Remove This*/
}
#selection .select .select-icon {
position: absolute;/*Remove This*/
}
#selection .select .select-icon i {
/* left: -25px; Remove this line and Add Below lines */
left: 0;
right: 0;
margin: 0 auto;
}
关于html - 元素大于页面的宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36953921/