HTML table cellspacing 属性
把表格单元格间距设置为 10 像素: 实例 Run this code » <table border="1" cellspacing="10"> <tr> <th>Month</th> &l...
把表格单元格间距设置为 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:...
在 <picture> 标签中使用 <source> 来设置不同屏幕显示的图片: 实例 Run this code » <picture> <source media="(min-width:650...
type 属性的使用: 实例 Run this code » <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="ho...