1
上面,左側的圖標不會受我的p
標籤,但正確的是。
p {
font-family: Montserrat;
height: 100%;
width: 60%;
background: #e6e6e6;
color: #505050;
font-size: 1.3em;
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
i:nth-child(1) {
position: absolute;
font-size: 0.5em;
margin-top: 2em;
margin-right: 1em;
}
i:nth-child(2) {
position: absolute;
font-size: 0.5em;
margin-bottom: 1em;
margin-left: 1em;
}
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<p>
<span>%%%</span>
<span>%%%</span>
<span>%%%</span>
<span>
<i class="fa fa-quote-left fa-1x" aria-hidden="true "></i>
Fondateur du studio
<i class="fa fa-quote-right" aria-hidden="true"></i>
</span>
</p>
那麼,什麼是預期的行爲? – mplungjan
左側圖標應右移1em,頂部 – Yazrihm
右側和頂部是什麼?請對你期待的行爲持不懈的精確。 –