编辑文本后点击显示结果
www.WoYouXian.net 我有闲 IT 教程
<html> <head> <style type="text/css"> img { position:absolute; top:100px; } </style> <script type="text/javascript"> function clipImage() { document.getElementById("img1").style.clip="rect(0px,50px,50px,0px)"; } </script> </head> <body> <img id="img1" border="0" src="/i/eg_sun.gif" /> <input type="button" onclick=clipImage() value="Clip image" /> </body> </html>
© 2007-2008 woyouxian.net 版权所有
Contact Us