私は、同じ行に均等に配置したいと思っているスパン(これに対してdivがspanよりも優れている場合はidk)を持っています。Q:要素を均等に配置するにはどうすればよいですか?
ありがとうございます!
.icons span{
justify-content: center;
margin: 20px 50px;
float: left;
border-color: black;
border-width: 2px;
}
<div class="icons">
<span>
<h1>Honest</h1>
</span>
<span>
<h1>Accurate</h1>
</span>
<span>
<h1>Reasonable</h1>
</span>
'.icons {ディスプレイ:曲がります。 justify-content:スペース間。 } 'または多分' justify-content:space-around' - ここに参考文献がありますhttps://developer.mozilla.org/en-US/docs/Web/CSS/justify-content –