我注意到一些時間元素重疊我不知道why.i已刪除的利潤從頂部元素(p標籤),所以也沒有辦法,這是保證金collapse.so它究竟是什麼?
我可以通過添加display:inline-block
來解決這個問題,但有沒有更好的方法可以避免這種情況?
.ui-btn {
border: 2px solid #ffffff;
border-radius: 30px;
background-color: #18aff4;
font-weight: bold;
text-align: center;
font-size: 18px;
color: white;
padding: 18px;
}
p {
margin: 0;
padding: 0;
}
<div class="text">
<p ">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<a class="ui-btn ">Sign up</a>
</div>
使用'顯示:直列block'是*如何*可以解決的......不知道爲什麼你要避免... – kukkuz