css如何设置span标签的行高

2024-11-27 07:50:14

1、新建一个html文件,命名为test.html,用于讲解css如何设置span标签的行高。

css如何设置span标签的行高

3、在test.html文件内,给span标签添加class属性,属性值为mytest。

css如何设置span标签的行高

5、在css标签内,再使用line-height属性设置内容的行高。

css如何设置span标签的行高
猜你喜欢