我開發了一個檔案上傳表格。現在我想添加一個洗掉圖示來洗掉 UI 中上傳的檔案。請為我提供洗掉該功能的解決方案。謝謝你。
<div class="form-group row">
<label class="col-md-5 col-form-label">attachment</label>
<div class="col-md-7">
<input type="file" class="form-control" id="file" name="file"><br><br>
</div>
</div>
uj5u.com熱心網友回復:
如果使用引導程式 5:
添加檔案 bootstrap-icons.css
<div class="input-group">
<label class="col-md-5 col-form-label">attachment</label>
<input type="file" class="form-control" id="file" name="file" />
<button class="btn btn-outline-secondary" type="button"><i class="bi bi-trash3"></i></button>
</div>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/498427.html
標籤:javascript html css 形式 表单数据
上一篇:使按鈕與另一個按鈕動態保持距離
