Add onclick with css pseudo-element after

前端 未结 5 1714
别跟我提以往
别跟我提以往 2021-02-06 23:20

Is it possible in my css file to do something like that?:

.myclass:after{
   content:\"click me\";
   onclick:\"my_function()\";
 }

I want to a

5条回答
  •  猫巷女王i
    2021-02-06 23:37

    Well,

    using expresison it might actually be possible for internet explorer only.

    Otherwise:

    No. Not at all, thats not what css is made and intendet for.

提交回复
热议问题