請檢查下面如何在html中並排顯示兩個div?
<div style="margin-right: 20%;text-align: justify;float: left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porttitor dapibus ipsum ut efficitur. Aliquam feugiat nec sem dapibus blandit. Nam non faucibus urna, at pulvinar nisl. Aliquam erat volutpat. Ut eget aliquet diam.
</div>
<div style="margin-left: 80%;float:right;">
<a href="mailto:[email protected]"
rel="nofollow noopener noreferrer"
target="_blank">[email protected]</a><br>(408) 553-3222<br>Boston
</div>
的片段,我不知道爲什麼它不會並排顯示內容的一面呢? 相同的代碼在
雙方的div需要擴大div的寬度 –
我把七個不同的方法一起放置兩個元素寬度第一元素的文本旁邊對方:HTTPS://boldewyn.github。 io/grid-example/ – Boldewyn