1.
<table border><td width=100 onclick=this.style.posWidth+=100>我在一个表格内右一段文字,我想点击文字的时候让表格大小变宽
注:表格,文字没有id值,而且表格外的表格不能变
</td></table>
<table border><td width=100 onclick=this.style.posWidth+=100>我在一个表格内右一段文字,我想点击文字的时候让表格大小变宽
注:表格,文字没有id值,而且表格外的表格不能变
</td></table>
<script>
var objs=document.all.tags("td")
for(i=0;i<objs.length;i++)objs[i].style.posWidth=123;
</script>3.
<script>
var objs=document.all.tags("a")
for(i=0;i<objs.length;i++)objs[i].style.color="red";
</script>
1中的文字是个连接!
注:表格,文字没有id值,而且表格外的表格不能变
</td></table><script>
var objs=document.all.tags("td")
for(i=0;i<objs.length;i++)objs[i].style.posWidth=123;
</script><script>
var objs=document.all.tags("a")
for(i=0;i<objs.length;i++)objs[i].style.color="red";
</script>