在html中是否存在vr(垂直规则)? [英] Is there a vr (vertical rule) in html?

查看:108
本文介绍了在html中是否存在vr(垂直规则)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道html中有一个hr(横向规则),但我不相信有一个vr(垂直规则)。我错了,如果没有,为什么没有垂直的规则?

解决方案

不,没有垂直规则。 / p>

拥有一个并不合乎逻辑。 HTML是按顺序分析的,这意味着你从上到下布局你的HTML代码,从左到右你希望它从上到下,从左到右出现(通常)。



一个vr标签并不遵循这个范例。

然而,使用CSS很容易。例如:

 < div style =border-left:1px solid#000; height:500px>< DIV> 

请注意,您需要指定高度或填充容器的内容。


I know there is a hr (horizontal rule) in html, but I don't believe there is a vr (vertical rule). Am I wrong and if not, why isn't there a vertical rule?

解决方案

No, there is no vertical rule.

It does not make logical sense to have one. HTML is parsed sequentially, meaning you lay out your HTML code from top to bottom, left to right how you want it to appear from top to bottom, left to right (generally)

A vr tag does not follow that paradigm.

This is easy to do using CSS, however. Ex:

<div style="border-left:1px solid #000;height:500px"></div>

Note that you need to specify a height or fill the container with content.

这篇关于在html中是否存在vr(垂直规则)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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