简体   繁体   中英

CSS Overflow With Divs within Div

I'm working on a new design and have been stuck on a design aspect which appears to only be fixed with some connection to the css attribute overflow, that or some form of javascript.

This is how my site boxes would normally look:

在此处输入图片说明

But if a screen is too small, this is how it looks:

在此处输入图片说明

So would it be better to fix this problem with css or javascript?

You can fix this by updating the CSS file code, Please check the CSS float change for mobile size in the below link.

CSS floats, change order on mobile layout?

I don't know exactly where your problem because your not post your code/fiddle/website. But it be better to fix your problem using CSS, because it happen to your style. Try to make different style on different size screen. hope this link help you CSS Media Screen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM