yiweiyihang

HTML

<a href="http://www.baidu.com" style="display: inline-block; width: 100%; height: 150px;">
   <div class="divcss" style="width:100px;height:100px;background-color:#ff6a00;"></div>
 </a>

JS:引入jquery之后在测试

<script type="text/javascript">
     $(".divcss").click(function () {
         alert(11);
         return false;
     });
 </script>

 

分类:

技术点:

相关文章:

  • 2021-10-18
  • 2021-11-13
  • 2021-08-21
  • 2021-10-28
  • 2021-11-21
  • 2021-09-07
  • 2021-12-12
  • 2021-07-06
猜你喜欢
  • 2021-10-18
  • 2021-08-29
  • 2021-10-18
  • 2021-10-18
  • 2021-10-18
  • 2022-02-02
相关资源
相似解决方案