在jsp页面中怎样让一个td显示到一个td的右下角
2个回答
展开全部
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
table td{
width: 200px;
height: 100px;
position: relative;
}
.mytd_div{
width: 50px;
height: 50px;
//border: 1px solid black;
position: absolute;
top: 50px;
left: 150px;
background: yellow;
text-align: center;
line-height: 50px;
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="1">
<tr>
<td>
<div class="mytd_div">1</div>
</td>
</tr>
</table>
</body>
</html>
你可以尝试一下这段代码
如果对您有帮助别忘记采纳
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
table td{
width: 200px;
height: 100px;
position: relative;
}
.mytd_div{
width: 50px;
height: 50px;
//border: 1px solid black;
position: absolute;
top: 50px;
left: 150px;
background: yellow;
text-align: center;
line-height: 50px;
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="1">
<tr>
<td>
<div class="mytd_div">1</div>
</td>
</tr>
</table>
</body>
</html>
你可以尝试一下这段代码
如果对您有帮助别忘记采纳
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询