更新时间:2023-11-22 22:09:46
< h1>
是块级元素,浏览器通常会显示块级元素在元素之前和之后使用换行符。但是,您可以将其设置为内联
或内联块
<h1>
is a block-level element, and browsers typically display the block-level element with a newline both before and after the element. However you can make it as inline
or inline-block
h1 {
display: inline;
}
<div><img src="images/ConfigIcon.png"/><h1>System Configuration</h1></div>