設定邊框,插入表格后,只有最外面有實線邊框,那

如何讓每個單元格都有實線的邊框
uj5u.com熱心網友回復:
在html里是設定cellspacing="0",但是aspx里的table沒有這個屬性uj5u.com熱心網友回復:
css 寫個樣式
table
{
border-collapse: collapse;
margin: 0 auto;
text-align: center;
width:800px;
}
table td, table th
{
border: 1px solid #cad9ea;
color: #666;
height: 30px;
}
table thead th
{
background-color: #CCE8EB;
width: 100px;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/43138.html
標籤:ASP.NET
上一篇:是否可以找人制作一款軟體
