Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
h1, h2, ... h6 标签似乎对页面应用了自动格式化,在使用的地方添加了一个新行。我可以定义一个 CSS 属性来避免它吗?
我可以定义一个 CSS 属性以避免它吗
当然。只CSS为你的元素
CSS
h3 { display: inline; // next CSS properties }
是的,现在您可以定义所有标题标签的 CSS 代码
像这样
h1, h2, h3, h4, h5, h6{ display:inline-block; vertical-align:top; /////////////////css style }