Is there a vr (vertical rule) in html?

后端 未结 28 2269
花落未央
花落未央 2020-12-02 11:37

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?

28条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 12:07

    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:

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

提交回复
热议问题