時(shí)間:2023-09-29 02:12:01 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-09-29 02:12:01 來(lái)源:網(wǎng)站運(yùn)營(yíng)
HTML表格如何設(shè)置邊框樣式:HTML表格設(shè)置邊框樣式的方法有:可以通過(guò)border屬性設(shè)置邊框的粗細(xì)以及顏色樣式,另外也可以設(shè)置表格單元格的間距與邊距以及合并邊框來(lái)美化表格。<table border="1px solid #ccc">
table,table tr th, table tr td { border:1px solid #ccc; }
border-collapse: collapse
(邊框合并)使表格的邊框合并為一個(gè)單一的邊框,這樣使得表格更加美觀該屬性設(shè)置表格的邊框是否被合并為一個(gè)單一的邊框,還是象在標(biāo)準(zhǔn)的 HTML 中那樣分開(kāi)顯示使表格更加美化<style> table,table tr th, table tr td { border:1px solid #ccc; } table{ width: 400px; border-collapse: collapse; } </style> <table cellpadding="0";cellspacing="0"> <tr> <td>內(nèi)容</td> <td>內(nèi)容</td> <td>內(nèi)容</td> </tr> <tr> <td>內(nèi)容</td> <td>內(nèi)容</td> <td>內(nèi)容</td> </tr> <tr> <td>內(nèi)容</td> <td>內(nèi)容</td> <td>內(nèi)容</td> </tr> <tr> <td>內(nèi)容</td> <td>內(nèi)容</td> <td>內(nèi)容</td> </tr> </table>
關(guān)鍵詞:邊框,樣式,設(shè)置,表格
客戶&案例
營(yíng)銷資訊
關(guān)于我們
客戶&案例
營(yíng)銷資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。