Javaweb 超链接/表格


<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body> <!--表格
cellspacing表边框的宽度
align对齐方式

colspan 横向合并单元格
rowspan纵向合并单元格
<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--表格
colspan 横向合并单元格
rowspan纵向合并单元格
-->
<table align="center" border="2" width="500" height="500" cellspacing="0">
    <tr >
        <th colspan="2">1.1</th>
        <th>1.3</th>
        <th>1.4</th>
        <th>1.5</th>
    </tr>
    <tr>
        <td rowspan="2">2.1</td>
        <td>2.2</td>
        <td>2.3</td>
        <td>2.4</td>
        <td>2.5</td>
    </tr>
    <tr>
        <td>3.1</td>
        <td>3.2</td>
        <td>3.3</td>
        <td>3.4</td>

    </tr>
    <tr>
        <td>4.1</td>
        <td>4.2</td>
        <td>4.3</td>
        <td colspan="2" rowspan="2">4.4</td>

    </tr>
    <tr>
        <td>5.1</td>
        <td>5.2</td>
        <td>5.3</td>
    </tr>

</table>

</body>
</html>

 

-->
<table align="center" border="2" width="300ps" height="300" cellspacing="0">
    <tr >
        <th>1.1</th>
        <th>1.2</th>
        <th>1.3</th>
    </tr>
    <tr align="center">
        <td>2.1</td>
        <td>2.2</td>
        <td>2.3</td>
    </tr>
    <tr>
        <td>3.1</td>
        <td>3.2</td>
        <td>3.2</td>
    </tr>

</table>

</body>
</html>

 

<!-- 超链接

属性:a -->href 属性设置的地址
-->target属性设置那个目标进行跳转
1.target ="_self"//表示在当前页面
2.target ="_blank"//表示打开新页面


-->
<a href ="连接地址" target ="_blank">连接地址<a/>
<a href ="连接地址" target ="_self">连接地址<a/>

 

posted @ 2020-12-03 16:55  逐梦武威  阅读(384)  评论(0编辑  收藏  举报