<table border="2" align="center" align="70">
时间: 2024-04-05 09:28:16 浏览: 17
<table> 标签是 HTML 中用于创建表格的标签,它可以用来展示数据或者布局页面。其中的 border 属性用于设置表格边框的宽度,align 属性用于设置表格在页面中的对齐方式。
在你提供的代码中,<table border="2" align="center" align="70"> 的意思是创建一个带有边框宽度为2的表格,并将其在页面中居中对齐。不过需要注意的是,align 属性只能接受 left、right、center 这三个值,70 并不是有效的值。
如果你想要创建一个居中对齐且带有边框的表格,可以使用以下代码:
```html
<table border="2" align="center">
<!-- 表格内容 -->
</table>
```
相关问题
<table border="1" align="center">
以下是一个带有边框和居中对齐的表格示例:
```html
<table border="1" align="center">
<tr>
<th>姓名</th>
<th>年龄</th>
<th>性别</th>
</tr>
<tr>
<td align="center">张三</td>
<td align="center">25</td>
<td align="center">男</td>
</tr>
<tr>
<td align="center">李四</td>
<td align="center">30</td>
<td align="center">女</td>
</tr>
</table>
```
html <table border bgcolor="#eeeeee"> <tr><td(l)align=center><b>情况登记</b><tr><td>姓名:<td>(2) <tr><td>密码:<td><INPUT size="20" _(3) value="pwd"> <tr><td> 性别:<td><INPUT name="sex" type=radio> 男<INPUT name="sex" type=radio>女 <tr><td> <td><INPUT (4)_value=”提 交“><INPUT type="reset"(5)></table></form>
```html
<form>
<table border bgcolor="#eeeeee">
<tr>
<td align=center><b>情况登记</b></td>
</tr>
<tr>
<td>姓名:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>密码:</td>
<td><input size="20" type="password" name="password" value="pwd"></td>
</tr>
<tr>
<td>性别:</td>
<td><input type="radio" name="sex" value="male">男 <input type="radio" name="sex" value="female">女</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="提交"><input type="reset" value="重置"></td>
</tr>
</table>
</form>
```
相关推荐
![html](https://img-home.csdnimg.cn/images/20210720083451.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
<form action="SelectNews" method="post"> 请输入查询条件:<input type="text" name="key"> <input type="submit" value="查询"> </form>
编号 标题 类型 发布人 发布日期 状态 是否头条 操作 <c:forEach items="${newsList }" var="news"> ${news.nid } ${news.title } ${news.type } ${news.userName } ${news.pubtime } <c:choose> <c:when test="${news.state==0 }">待审核</c:when> <c:when test="${news.state==1 }">通过</c:when> <c:otherwise>未通过</c:otherwise> </c:choose> <c:choose> <c:when test="${news.top==0 }">否</c:when> <c:otherwise>是</c:otherwise> </c:choose> ${news.top==0?"是":"否" } 查看 修改 <c:if test="${user.rule==0 }"> 删除 </c:if> <c:if test="${user.rule==0 }"> 审核</c:if> </c:forEach> 这是前端代码如何优化为上文你所陈述的代码
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
<body> 添加员工 员工姓名 <input type="text" id="aaa"/> 员工职位 <select><option>普通员工</option> <option>经理</option> 请求为啥会多一个jsp?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>人力资源管理系统</title> <meta http-equiv="Content-Type" content="text/html; charset=GBK"> </head> <body> 人才信息 姓名 性别 年龄 职位 所学专业 工作经验 执行操作 we33 男 0 ew we ew 详细 删除 ds 女 0 ds ds ds 详细 删除 李四 男 36 JAVA架构师 计算机 5年 详细 删除 王五 男 28 软件测试工程师 计算机 三年 详细 删除 </body> </html>实现后端代码
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)