水平居中 :text-align:right;right;center;
垂直居中:vertical-align:bottom;top;middle;
合并边框:border-collapse:collapse;
设置某列的宽度:<th style="width:70%">Firstname</th>
列编组:<colgroup span="2" style="width:25px;"></colgroup>
<colgroup span="4" style="width:100px;"></colgroup>
行编组:<thead>...</thead> <tbody>...</tbody> <tfoot>...</tfoot> ex:<thead style="backgroudn-color:red">
浮动:float:left,right,center;清除浮动clear:left,right,both,
位置:position:absolute(绝对定位,相对于body,或第一个position父元素), relative,fixed(相对于屏幕)
设置视口:<meta name="viewport", content="width=device-width"> 内容填满窗口。
响应式web设计:根据设备显示不同结果。all, handheld,screen... 使用:<link href="t.css" media="screen">
滚动:设置父view的高度添加overflow:scroll;
高度塌陷:子元素的末尾添加一个空的 div ,并设置下方样式 div{ clear: both; height: 0; overflow: hidden; }
万能清浮动 父元素:after{content: ""; height: 0; clear: both; overflow: hidden; display: block; visibility: hidden; }