table 设置边框
生活随笔
收集整理的這篇文章主要介紹了
table 设置边框
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本文引自:https://www.cnblogs.com/leona-d/p/6125896.html
示例代碼:
<!DOCTYPE html> <html lang="zh"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="ie=edge" /><title>table 設置邊框</title><style>table,table tr th,table tr td {border: 1px solid #0094ff;}table {width: 200px;min-height: 25px;line-height: 25px;text-align: center;border-collapse: collapse;padding: 2px;}</style></head><body><table><tr><td>內容</td><td>內容</td><td>內容</td><td>內容</td><td>內容</td></tr><tr><td>內容</td><td>內容</td><td>內容</td><td>內容</td><td>內容</td></tr><tr><td>內容</td><td>內容</td><td>內容</td><td>內容</td><td>內容</td></tr><tr><td>內容</td><td>內容</td><td>內容</td><td>內容</td><td>內容</td></tr></table></body></html>效果:
?
更多專業前端知識,請上 【猿2048】www.mk2048.com
總結
以上是生活随笔為你收集整理的table 设置边框的全部內容,希望文章能夠幫你解決所遇到的問題。