简体   繁体   English

HTML 标题之间的间距

[英]Spacing between HTML HEADINGS

How can i manage the SPACE between two HTML headings without using EXTERNAL CSS.如何在不使用 EXTERNAL CSS 的情况下管理两个 HTML 标题之间的空间。 i want to use INLINE CSS or any HTML TAG.我想使用内联 CSS 或任何 HTML 标签。 I have googled a lot, but i am not able to find appropriate solution.我用谷歌搜索了很多,但我找不到合适的解决方案。 Kindly Help请帮助

You didin't say which heading you're using,but here's an example using a h1 and a h2 heading:您没有说明您使用的是哪个标题,但这里有一个使用 h1 和 h2 标题的示例:

<h1 style="margin-bottom:50px">This is a H1 heading</h1>
<h2>This is a H2 heading that is a bit away from the H1 heading</h2>

It's unclear what you mean by height.目前还不清楚你所说的高度是什么意思。 Lucas T is showing you the spacing between two header tags. Lucas T 向您展示了两个标题标签之间的间距。 The space between them is controlled by a number of things.它们之间的空间由许多事物控制。 Assuming they are within the same piece of scaffolding then line-height, padding, margin and display will be the places to check first but almost every property can affect how 2 elements sit next to each other.假设它们在同一个脚手架内,那么 line-height、padding、margin 和 display 将是首先检查的地方,但几乎每个属性都会影响 2 个元素如何彼此相邻。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM