问题描述
目前,我有一个列表,上面有一个H3标题(我很难真正删除它,它是由cms自动生成的),看起来像这样
Currently I have a list that has an H3 heading above it (which I can't really remove easily, it's auto generated by a cms) and looks something like this
Headline
|
|
List stuff
,我想摆脱管道.它们似乎是内置"在<h3>
标记中的,任何人都不知道h3的CSS属性将如何消除?
and I want to get rid of the pipes. They seem to be "built in" to the <h3>
tag, anyone have any idea what CSS property of h3 would get rid of this?
推荐答案
H1,H2和H3标签本质上都具有浏览器添加的边距和填充.
H1, H2, and H3 tags all inherently have a margin and padding added to them by browsers.
您可以通过在CSS的H1,H2和H3标签上放置背景并在不同的浏览器中查看来进行测试.
You can test this by putting a background on the H1, H2, and H3 tags in css and looking in different browsers.
要删除管道间距",您应该:
To remove the "pipe spacing" you should:
h3{
padding: 0px;
margin: 0px;
}
然后,您可以重新添加任何内容,因为CSS是单向执行路径.相应的CSS值将覆盖基本级别的CSS.
Then you can re-add whatever you would like since CSS is a one-way execution path. Consequent CSS values will overwrite base-level CSS.
这篇关于删除标题标签下的填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!