我想將與串列或下拉串列fileselector相同的檔案選擇器。dropdown我對兩者都很好。我的意思是它們應該具有相同的大小并對齊。

<div>
<Row>
<div className="col-sm-5 text-left">
Please select the language:{' '}
</div>
<div>
<div className="col-sm-7 text-center">
<select >
<option >
Please select the language from list
</option>
<option key={ctr} value={ctr}>
{ctr}
</option>
</select>
</div>
</div>
</Row>
<Row>
<div className="col-sm-6 text-left">
Please select the file to upload:
</div>
<div className="col-sm-5 text-center">
<input
type="file"
accept=".json"
className="form-control form-sm-control"
name="file"
required
/>
</div>
</Row>
</div>
實際上我不是 UI 開發人員,但我嘗試并努力完成它。它仍然沒有到來。能否請你幫忙。如果您可以建議,我可以使用其他庫或純 CSS。
uj5u.com熱心網友回復:
Boostrap 中的不是row一個類嗎?像這樣:
<div class="row">
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
</div>
https://getbootstrap.com/docs/5.1/layout/columns/
如上所述,<Row>可能是您創建的 React 組件,如果沒有更多資訊,很難在此處除錯。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/419521.html
標籤:
