問題是我想為每個表格行添加兩個錨元素,所以我需要為這些鏈接再添加兩個,問題是當我添加它們時,即使我設定了邊框也會出現在標題的頂部
<th style="display:none;"></th>
這是表格代碼
.tablesgh table{
width: 80%;
margin:auto;
/* align-self: center; */
}
<div class="tablesgh">
<table style="border-collapse: collapse;" class="table text-center table-responsive table-success table-hover table-bordered table-sm">
<thead>
<tr>
<!-- <div > -->
<th>Nom complet</th>
<th>Num telephone</th>
<th>Lien du profile</th>
<th>Date ajouté</th>
<th style="display:none;"></th>
<th style="display:none;"></th>
<!-- </div> -->
</tr>
</thead>
{% for client in clients %}
<!-- <script>
var cli_name="{{client.name}}";
var cli_id="{{client.id}}";
</script> -->
<tr>
<td>{{client.name}}</td>
<td>{{client.phone}}</td>
<td>{{client.profile_link}}</td>
<td>{{client.date_added}}</td>
<td style="display:none;">{{client.id}}</td>
<td><a style="position:relative;" href="{% url 'delete-record' client.id %}" class="btn btn-outline-danger">Effacer</a></td>
<td><a href="{% url 'get-commandes' client.id %}" class="btn btn-outline-info">Afficher les commandes</a></td>
</tr>
{% endfor %}
</table>
<!-- </div>
</div> -->
</div>
這是一張桌子的照片
uj5u.com熱心網友回復:
你的桌子是一流的table-bordered,你可以試著擺脫它。您還可以直接從style屬性控制邊框外觀:例如,如果您替換display:none;為border: 0px;,它應該會消失。您還可以使其透明 ( border-color: transparent;) 等。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/417361.html
標籤:
上一篇:如何通過DRFAPIView從非常大的查詢集中獲取隨機物件?
下一篇:如何使用外鍵關系匯入匯出
