我正在尝试在 html 标题中的行之间添加空格:我真的无法弄清楚我的问题出在哪里...... :-( html 是:
.col1 {
width: 10%;
border: 1px solid red;
display: inline-block;
}
.col2 {
padding: 20px;
width: 70%;
border: 1px solid green;
display: inline-block;
}
.col3 {
width: 10%;
border: 1px solid blue;
display: inline-block;
}
.title {
background-color: orange;
font-size: 34px;
line-height: 50px;
}
<div class=col1>a</div>
<div class=col2>
<h2>
<p class=title>
long, longgfdfdg, long, longgfdfdg, long, longgfdfdg, long, longgfdfdg, long, longgfdfdg, long, longgfdfdg,
</p>
</h2>
</div>
<div class=col3>a</div>
https://jsfiddle.net/uvkqt7wj/
感谢您的宝贵帮助