设置此div的height为100%,不起作用。为什么? 5
设置td的position为relative,td中包含div,并且div的position为absolute。设置此div的height为100%。不起作用。求帮忙!代...
设置td的position为relative,td中包含div,并且div的position为absolute。设置此div的height为100%。不起作用。求帮忙!代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.tagTD{width:50px; height:50px; position:relative; }
td .ul-Resizable-r{ position:absolute; width:10px; height:100%; right:0px; top:0px; background-color:green;cursor:e-resize; overflow:none;}
</style>
</head>
<body>
<Table width="300" border="1"
<tr>
<td width="100px">1</td>
<td class="tagTD"><div class="ul-Resizable-r"></div></td>
<td width="100px">3</td>
</tr>
<tr>
<td width="100px">4</td>
<td width="100px">5</td>
<td width="100px">6</td>
</tr>
</Table></body>
</html> 展开
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.tagTD{width:50px; height:50px; position:relative; }
td .ul-Resizable-r{ position:absolute; width:10px; height:100%; right:0px; top:0px; background-color:green;cursor:e-resize; overflow:none;}
</style>
</head>
<body>
<Table width="300" border="1"
<tr>
<td width="100px">1</td>
<td class="tagTD"><div class="ul-Resizable-r"></div></td>
<td width="100px">3</td>
</tr>
<tr>
<td width="100px">4</td>
<td width="100px">5</td>
<td width="100px">6</td>
</tr>
</Table></body>
</html> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询