change cursor to finger pointer

前端 未结 10 2252
孤街浪徒
孤街浪徒 2021-01-30 15:17

I have this a and I don\'t know that I need to insert into the \"onmouseover\" so that the cursor will change to finger pointer like a regular link:



        
10条回答
  •  萌比男神i
    2021-01-30 15:54

    You can do this in CSS:

    a.menu_links {
        cursor: pointer;
    }
    

    This is actually the default behavior for links. You must have either somehow overridden it elsewhere in your CSS, or there's no href attribute in there (it's missing from your example).

提交回复
热议问题