CSDN博客经常用的HTML表格代码

<table cellspacing="0" cellpadding="0" width="700" border="1">
<colgroup></colgroup><colgroup><col width="10%"><col width="75%"><col width="15%"></colgroup>
<tbody>
 



<tr height="27">
    <td colspan="3">
        <p align="center"><span style="font-family:Microsoft YaHei; font-size:24px">主要非英文语系字符范围</span></p>
    </td>
</tr>

<tr height="20">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><strong>模式</strong></span>
    </td>

    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><strong>名称</strong></span>
    </td>

    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><strong>说明</strong></span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.I</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">re.IGNORECASE</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">忽略大小写(括号内是完整写法,下同)</span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.M</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">MULTILINE</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">多行模式,改变'^'和'$'的行为</span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.S</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">DOTALL</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">点任意匹配模式,改变'.'的行为, 使".“可以匹配任意字符</span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.L</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">LOCALE</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">使预定字符类 \w \W \b \B \s \S 取决于当前区域设定</span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.U</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">UNICODE</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">使预定字符类 \w \W \b \B \s \S \d \D 取决于unicode定义的字符属性</span>
    </td>
</tr>

<tr height="22">
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px"><em>re.X</em></span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px; color:#ff0000">VERBOSE</span>
    </td>
    
    <td>
        <span style="font-family:Microsoft YaHei; font-size:16px">详细模式。这个模式下正则表达式可以是多行,忽略空白字符,并可以加入注释。以下两个正则表达式是等价的:</span>
    </td>
</tr>

</tbody>
</table>

好几篇博客都使用到了,特此记录下来,以备以后使用

你可能感兴趣的:(CSDN博客经常用的HTML表格代码)