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

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

问题描述

我试图在html中使用< div> 标签创建两个水平分隔符,但是我无法创建。任何人都可以帮助我使用html和css与< div> 标签进行横向划分。

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 设置要匹配的 float 属性,例如 left

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天全站免登陆