js 表格动态内容居中显示
document.writeln("<trid='"+objName+"'>");document.writeln("<tdid=LeaseTimeRemaining><...
document.writeln("<tr id= '" + objName + "' >");
document.writeln("<td id=LeaseTimeRemaining ></td>");
如题,想让该行表格的内容居中显示。
代码如下
<script language='javascript'>
var i;
var objName;
if (objBuf['MDMOID_LAN_HOST_ENTRY'] != undefined)
{
var iidindex = objBuf['MDMOID_LAN_HOST_ENTRY']['Index'].split("|");
for (i=0; i < iidindex.length; i++)
{
objName = 'MDMOID_LAN_HOST_ENTRY' + iidindex[i];
document.writeln("<tr id= '" + objName + "' >");
document.writeln("<td id='LeaseTimeRemaining' ></td>");
document.writeln("</tr>");
}
}
</script> 展开
document.writeln("<td id=LeaseTimeRemaining ></td>");
如题,想让该行表格的内容居中显示。
代码如下
<script language='javascript'>
var i;
var objName;
if (objBuf['MDMOID_LAN_HOST_ENTRY'] != undefined)
{
var iidindex = objBuf['MDMOID_LAN_HOST_ENTRY']['Index'].split("|");
for (i=0; i < iidindex.length; i++)
{
objName = 'MDMOID_LAN_HOST_ENTRY' + iidindex[i];
document.writeln("<tr id= '" + objName + "' >");
document.writeln("<td id='LeaseTimeRemaining' ></td>");
document.writeln("</tr>");
}
}
</script> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询