首页 > 其他 > 详细

页面图片按钮案例

时间:2015-12-23 00:23:09      阅读:306      评论:0      收藏:0      [点我收藏+]
<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">
  <script type="text/javascript">
        function click_a(){
            alert("按钮点击事件1!")
        }
        function click_b(){
            alert("按钮点击事件2!")
        }
  </script>
  <title>Document</title>
 </head>
 <body>
  <a onclick="click_a()" style="position: absolute; top: 130px; left:180px; display:block;width:71px;height: 21px; background: url(http://sm.beycheer.com/kfbox/13/0703_blue/btn.gif) no-repeat;" onmouseover="this.style.backgroundPosition=‘0 -22px‘" onmouseout="this.style.backgroundPosition=‘0 0‘"></a>

  <a onclick="click_b()" style="position: absolute; top: 130px; left: 260px; display:block;width:71px;height: 21px; background: url(http://sm.beycheer.com/kfbox/13/0703_blue/btn.gif) -72px 0 no-repeat" onmouseover="this.style.backgroundPosition=‘-72px -22px‘" onmouseout="this.style.backgroundPosition=‘-72px 0‘">
  </body>  
 </body>
</html>

   这是图片样式:技术分享

页面图片按钮案例

原文:http://www.cnblogs.com/qingsong/p/5068391.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!