正确浮动物品而不影响其他物品 [英] Float items properly without affecting other items

查看:96
本文介绍了正确浮动物品而不影响其他物品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在div中浮动一个项目时,下一个div中的下一个项目会自动浮动在它旁边



我尝试了什么:



我尝试过使用clear属性但是没有用

When I float an item inside a div the next item in the next div automatically floats beside it

What I have tried:

I've tried using the clear property but it didn't work

推荐答案

Try replacing <div> with <span>??


这篇关于正确浮动物品而不影响其他物品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆