这是正确的方法,inline-block还是float? [英] Which is the correct method, inline-block or float?

查看:77
本文介绍了这是正确的方法,inline-block还是float?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个网站的布局,并对于何时使用 inline-block float 感到困惑。这是最好的方法: inline-block float

I am designing a layout for a site and am confused about when to use inline-block or float. Which is the best way: inline-block or float?

使用 inline-block 意味着它不会展示互联网资源管理器。有时 float 也会造成损害(即使使用clearfix hack)。

Using inline-block means it doesn't spport Internet Explorer. Sometimes float is also doing damage (even using the clearfix hack).

推荐答案

请参阅文章 应使用内联块作为浮点数的替代 。它会帮助你很多。

Please refer to the article Should You Use Inline-Blocks As A Substitute For Floats. It will help you a lot.

这篇关于这是正确的方法,inline-block还是float?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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