我遇到了一個問題。我在一個網站上工作,我想用一個標簽來設置輸入的樣式,使其漂浮在右側,標簽保持在該行輸入的頂部,但元素保持不變。這是我到目前為止所做的:<h2>Pacients Info</h2>? ? ? ? <button className="addNewPacient" onClick={showModal}>Create</button>? ? ? ? <button className="addNewPacient">Read</button>? ? ? ? <button className="addNewPacient">Update</button>? ? ? ? <button className="addNewPacient">Delete</button>? ? ? ? <label for="rowsNo"><b>Rows no.</b></label>? ? ? ? <input?? ? ? ? ? ? type="number"?? ? ? ? ? ? placeholder="Rows no"? ? ? ? ? ? name="rowsNo"? ? ? ? ? ? value="10000"? ? ? ? ? ? onChange={e => onInputChange(e)}? ? ? ? />label[for="rowsNo"],input[name="rowsNo"] {? ? float: right;}input[name="rowsNo"] {? ? width: 100px;}
如何設置連續兩行浮動的兩個元素的樣式?
一只甜甜圈
2023-06-15 17:20:22