私は<footer>
に問題があります。 <footer>
の子要素は、その外側に配置されます。子要素が親フッター要素の外側にある
子要素を<footer>
の中に配置し、子を左から右に揃えるにはどうすればよいですか?あなたのCSSで
footer{
background-color: black;
height: 100px;
}
footer > a,
#link{
display: flex;
align-items: center;
justify-content: center;
width: 100px;
height: 100%;
background-color: yellow;
}
#damn{
background-color: red;
width: 100px;
height: 100px;
}
<footer>
<a href="#">
<div id="link">
here we go again
</div>
</a>
<div id="damn">
</div>
why the hell
</footer>
一部の人々は誓う感謝していないコンテンツが設定した高さよりも大きいとき... – epascarello
だから、あなたが起こるために何を期待していますか? – epascarello
私は「誓う」ことについて考えていません – bidipeppercrap