奇怪的水平滚动(strange horizontal scroll)

编程入门 行业动态 更新时间:2024-10-18 01:27:50
奇怪的水平滚动(strange horizontal scroll)

我有一个奇怪的水平滚动,奇怪,因为我有一个100%宽度的容器。 看看这个链接 ,看看我在说什么

I have a strange horizontal scroll, strange because I have a 100% width container. Take a look at this link to see what I'm talking about

最满意答案

从触发器中删除float和width 。

您的元素的width: 100% ,这会导致它们占据页面的整个宽度。 您正在为它们添加边框和填充,这会增加该宽度并使它们比页面更大。

Remove the float and width from the triggers.

Your elements have width: 100%, which causes them to occupy the entire width of the page. You're adding a border and padding to them, which adds to that width and makes them bigger than the page.

更多推荐

本文发布于:2023-07-04 17:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1026974.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:奇怪   水平   strange   horizontal   scroll

发布评论

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

>www.elefans.com

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