61,112
社区成员
发帖
与我相关
我的任务
分享
<style>
#div111{
/* overflow:auto;
height:40px;*/
border: 1px solid #000000;
font-family: "宋体";
font-size: 14px;
}
body{margin:0px;}
</style>
<table cellpadding="5" cellspacing="0" class="table">
<tr>
<th class="tr1" scope="col">
标题这里是
</th>
</tr>
<tr>
<td>
<table cellpadding="2" cellspacing="0" class="table">
<tr>
<th align="left" scope="col">
</th>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="2" class="table">
<tr>
<td>
<div id="div111">////增加字符</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="button" onclick="af();" value="增加">
<script language="javascript">
function af(){
var $E=document.getElementById('div111')
if($E.innerText.length>30){
$E.style.width=240;
$E.style.height=240;
$E.style.overflow="auto";
}
$E.innerText+=$E.innerText
}
</script>