且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用CSS在HTML文档中插入换行符

更新时间:2023-01-14 16:32:01

***将所有元素包装在标签元素中,然后将css应用到标签。

It'd be best to wrap all of your elements in label elements, then apply css to the labels. The :before and :after pseudo classes are not completely supported in a consistent way.

标签标签具有许多优点,包括增加了可访问性(在多个层次上)和更多。

Label tags have a lot of advantages including increased accessibility (on multiple levels) and more.

<label>
    Thingy one: <input type="text" name="one">;
</label>

然后在您的标签元素上使用CSS ...

then use CSS on your label elements...

label {display:block;clear:both;}