如何使用HTML div标签和CSS,使水平分工 [英] How to make horizontal division using html div tag and css

查看:190
本文介绍了如何使用HTML div标签和CSS,使水平分工的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让使用&LT两横divisons; DIV> 的HTML标记,但我无法做到这一点。谁能帮我用HTML和CSS水平分工与< D​​IV> 标签

I'm trying to make two horizontal divisons using <div> tag in html, but I couldn't make it. Can anyone help me make horizontal division using html and css with <div> tags?

推荐答案

设置浮动属性每个 DIV 要匹配,例如离开来每个,给每个人足够的宽度,这样家长包含它们。

Set the float property for each div to be matched, for example left to each, give each of them enough width so that the parent contains them.

这篇关于如何使用HTML div标签和CSS,使水平分工的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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