小尝试

html 使表格随着内容自动适应宽度:<td nowrap="nowrap">

正则表达式替换:

<td .*\s*.*\s*.*\s*.*\s*height:2cm'>

[.*\s*]

* 重复0、多次

. 匹配除换行符以外的任意字符

\s 匹配任意的空白符space

【包括空格,制表符(Tab),换行符,中文全角空格等】

html文字行间距属性:line-height:12px;

html 使表格自适应高度:<tr> height:2cm—>height:auto

html边框与其内容的间隙大小:cellpadding=3

   

   

   

html 使表格随着内容自动适应宽度:<td nowrap="nowrap">

文字行间距属性:line-height:18px;
文字间距属性:letter-spacing:1px;

html 使表格自适应高度:height:2cm—>height:auto

cellpadding="0" cellspacing="0"
table标签的参数。
cellpadding 是边框与其内容的间隙大小;
cellspacing 是边框与边框之间的间隙大小;

html中段前段后间距
margin: 0 0 0 0;
依次赋值为 上右下左

   

tr是换行,td是换列
tr是"table row(表格行)"的缩写。
td是"table data(表格数据)"的缩写

一列二行:
<table>
<tr>
<td>123123</td>
</tr>
<tr>
<td>123123</td>
</tr>
</table>

一行二列:
<table>
<tr>
<td>123123</td>
<td>123123</td>
</tr>
</table>

猜你喜欢

转载自www.cnblogs.com/yeyeye123/p/10529986.html