让A标签(超链接)失效的CSS写法

知更鸟 Web前端34.2K阅读模式

有时候就是这么古怪,会用到这种效果,没办法,有需求就要解决,让A标签(超链接)失效的CSS写法如下。

  1. a {poorfish:expression(this.onclick=function kill(){return false})}
文章源自知更鸟-https://zmingcx.com/make-a-label-failure-css-notation.html文章源自知更鸟-https://zmingcx.com/make-a-label-failure-css-notation.html

本站文章大部分始于原创,用于个人学习记录,可能对您有所帮助,仅供参考!

weinxin
我的微信
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
 
评论  3  访客  3
    • 小金麟
      小金麟 1

      我来偷一个效果,哈哈哈!

      • Win7en乐园
        Win7en乐园 7

        这个好,非常的实用!

        • VEXS
          VEXS 4

          有帮助,收藏了。

        匿名

        发表评论

        匿名网友 填写信息

        :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

        确定