如何控制标签标签的宽度? [英] How can I control the width of a label tag?
本文介绍了如何控制标签标签的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
标签标签没有属性width,因此如何控制标签标签的宽度?
The label tag doesn't have the property 'width', so how should I control the width of a label tag?
推荐答案
使用CSS,当然...
Using CSS, of course...
label { display: block; width: 100px; }
width
属性已弃用, CSS应该总是用于控制这些种类的表现风格。
The width
attribute is deprecated, and CSS should always be used to control these kinds of presentational styles.
这篇关于如何控制标签标签的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文