
我現在有這個。我希望按鈕不包裹 div 視窗。這是我的 div 現在:
#floatingRectangle {
z-index: 10;
position: fixed;
left: 0;
right: 0;
top: 0;
height: 100px;
background-color: #fff;
color: black;
padding: 8px;
overflow-x: scroll;
}
<div id="floatingRectangle">
<form action="edit.php" method="POST">
<input type="submit" name="pageSubmit" value="Prev">
<input type="submit" name="pageSubmit" value="Next">
.. etc
</form>
</div>
uj5u.com熱心網友回復:
如果你給父組件display: flex和子組件justify-content: flex-endcss樣式會很容易
uj5u.com熱心網友回復:
將此CSS添加到代碼中:-
#floatingRectangle form{
display: flex;
flex-wrap: nowrap;
}
這應該作業
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/511245.html
標籤:htmlcss形式按钮
上一篇:使用dom操作更改文本內容
下一篇:我需要顫動中的可選按鈕
