HTML table rules 属性
只显示行之间的边框: 实例 Run this code » <table rules="rows"> <tr> <th>Month</th> <th>Savings</th&...
只显示行之间的边框: 实例 Run this code » <table rules="rows"> <tr> <th>Month</th> <th>Savings</th&...
只显示围绕表格的外侧边框: 实例 Run this code » <table frame="box"> <tr> <th>Month</th> <th>Savings</t...
把表格单元格间距设置为 10 像素: 实例 Run this code » <table border="1" cellspacing="10"> <tr> <th>Month</th> &l...
把表格单元边沿与单元内容之间的间距设置为 10 像素: 实例 Run this code » <table border="1" cellpadding="10"> <tr> <th>Month</...
下面的 HTML 表格将显示围绕表格单元的边框: 实例 Run this code » <table border="1"> <tr> <th>Month</th> <th>Sav...
带有背景颜色的 HTML 表格: 实例 Run this code » <table border="1" bgcolor="#00FF00"> <tr> <th>Month</th> <...
一个右对齐的 HTML 表格: 实例 Run this code » <table border="1" align="right"> <tr> <th>Month</th> <th&g...
在 <style> 标签中使用 type 属性: 实例 Run this code » <style type="text/css"> h1 {color:red;} p {color:blue;} </sty...
使用 scope 属性描述 <div> 元素的样式: 实例 Run this code » <div> <style type="text/css" scoped> h1 {color:red;} p {...
针对两种不同媒介类型(屏幕和打印)的两个不同的样式表: 实例 Run this code » <style type="text/css" media="print"> h1 {color:#000000;} p {color:...