<html>
<head>
<style>
button{
margin-left:20px //假设是距离左边20px;
}
</style>
</head>
<body>
<input type="button" value='确认提交'>
<table>
<tr>
<td>文字1</td>
<td>文字2</td>
</tr>
</table>
</body>
</html>
需要准备的材料分别有:电脑、浏览器、html编辑器。
1、首先,打开html编辑器,新建html文件,例如:index.html,编写问题基础代码。
2、在index.html中的<button>标签中,输入样式代码:style="position: absolutebottom:0",在<div>标签的style属性中新增代码:position:relative。
3、浏览器运行index.html页面,此时button始终紧靠div的下边界。
<button name="delate" value="delate">delate</button>value和name值有需要自己改,没需要删除
echo '<td width=100px><button name="delate" value="delate">delate</button></td>'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)