insertRow和insertCell--不换行
<script language="javascript">
<!--
function xxx(){
var cNum=document.all["I_cNum"].value
var getTable= document.getElementById("T_choice");
for(i=0;i<cNum;i++){
var oTR = getTable.insertRow();
var oTDa = oTR.insertCell();
var oTDb=oTR.insertCell();
//oTDa.width=20;
//oTDb.width=760;
oTDa.innerText =cNum+".";
oTDb.style.cssText="word-break:break-all;"
oTDb.innerText="asdfffffffffddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffff";
}
}
</script>
</head>
<body onLoad="xxx()">
<input type="hidden" name="I_cNum" value="4">
<table width="780" border="1" align="center" bgcolor="#6699FF" id="T_choice">
</table>
<!--
function xxx(){
var cNum=document.all["I_cNum"].value
var getTable= document.getElementById("T_choice");
for(i=0;i<cNum;i++){
var oTR = getTable.insertRow();
var oTDa = oTR.insertCell();
var oTDb=oTR.insertCell();
//oTDa.width=20;
//oTDb.width=760;
oTDa.innerText =cNum+".";
oTDb.style.cssText="word-break:break-all;"
oTDb.innerText="asdfffffffffddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffff";
}
}
</script>
</head>
<body onLoad="xxx()">
<input type="hidden" name="I_cNum" value="4">
<table width="780" border="1" align="center" bgcolor="#6699FF" id="T_choice">
</table>