有兩個方法
1)
<img src="xxx" style="width:20px;height:20px" name=imga>
<input type=text name=imgwidth>
<input type=text name=imgheight>
<input type=button onclick="change()">
<script>
function change(){
with(document.all){
imga.style.width=imgwidth.value;
imga.style.height=imgheight.value;
}
}}
</script>2.
<img src="xxx" style="width:20px;height:20px" name=imga>
<input type=button onclick="imga.style.zoom=imga.style.zoom-10">
1)
<img src="xxx" style="width:20px;height:20px" name=imga>
<input type=text name=imgwidth>
<input type=text name=imgheight>
<input type=button onclick="change()">
<script>
function change(){
with(document.all){
imga.style.width=imgwidth.value;
imga.style.height=imgheight.value;
}
}}
</script>2.
<img src="xxx" style="width:20px;height:20px" name=imga>
<input type=button onclick="imga.style.zoom=imga.style.zoom-10">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货