我有兩個按鈕,它們看起來像這樣
。< button class="Entery-Buttons">c#</button>
<button class="Entery-Buttons"/span>> Html</button>
它們堆積在一起(意思是它們在彼此的上面),所以我試著把這個添加到類中
。.Entery-Buttons{Margin-left:20px;}。
而按鈕仍然粘在一起。
。.Entery-Buttons.
{
background-color:藍色。
color:white;
position: absolute;
bottom: 0;
margin-left:20px;
}
< button class="Entery-Buttons">c#</button>
<button class="Entery-Buttons"/span>> Html</button>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
uj5u.com熱心網友回復:
將它們放入一個容器中,并在容器中應用位置樣式:
。.Entery-Buttons.
{
position: absolute;
bottom: 0;
margin-left:20px;
}
.Entery-Buttons > buttonbackground-color:藍色。
color:white;
}
< span class="Entery-Buttons">
<button>c#</button>/span>
<button>Html</button>
</span>
<iframe name="sif2" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/320737.html
標籤:
下一篇:前100個偶數和奇數的和?
