如何在C#.net中放大图像? [英] How to enlarge an image in C#.net?
问题描述
<%--<script type="text/javascript">
function imgwtest()
{
document.getElementById("image1").style.width='500px';
document.getElementById("image1").style.height='500px';
}
function imgwtest1()
{
document.getElementById("image1").style.width='800px';
document.getElementById("image1").style.height='500px';
}
</script>
<table width="50%" border="1">
<tr style="height:200px;">
<td>
<img src="images/New Folder/ima2.jpg" id="image1" onmousemove="imgwtest();" onmouseout="imgwtest1();" style="width: 472px; height: 500px" />
--%>
请用代码
pls corect wat mistk in tis code
推荐答案
... img src ="images/New Folder/ima2.jpg" id ="image1" onmousemove ="imgwtest();" onmouseout ="imgwtest1();" style ="width:472px; height:500px"/>
...img src="images/New Folder/ima2.jpg" id="image1" onmousemove="imgwtest();" onmouseout="imgwtest1();" style="width: 472px; height: 500px" />
使用 onmouseover 代替onmousemove.
Use onmouseover instead of onmousemove.
function imgwtest(){document.getElementById("image1").style.width ="500px"; document.getElementById("image1").style.height =''500px''; }
function imgwtest() { document.getElementById("image1").style.width=''500px''; document.getElementById("image1").style.height=''500px''; }
增加宽度和高度到1000像素,这样就可以看到更改.
Increase width & height to 1000px here, such that changes are visible.
正确的tis代码
首先,更正您的问题,尤其是您的提问方式!如果可以的话,请客气一点!
这里的人可以帮助他们的空闲时间(当然是免费的!).您应该尊重这一点,而不要像所有人都坐在那里等着您的问题一样发贴!
First, correct your question, especially the way you ask! be a little polite if possible for you!
People here help in their free time (of course free of cost!). You should respect that and not post as if all are sitting and waiting just for your question!
这篇关于如何在C#.net中放大图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!