日期:2014-05-17 浏览次数:20785 次
<img src='small.jpg' id="smallimg" /> <img id="largeimg" src="large.jpg" style="display:none;" onload="showlarge()" /> </div> <script type="text/javascript" > function showlarge() { // alert("large ok"); document.getElementById("smallimg").style.display = "none"; document.getElementById("largeimg").style.display = "block"; } </script>
------解决方案--------------------
http://www.mysqlops.com/2011/09/09/weibo-web-css.html
建议楼主去看看这篇文章