Navigation hyperlinks only work when mouse is on the text

后端 未结 2 729
死守一世寂寞
死守一世寂寞 2021-01-28 11:49

My navigation button looks different when I mouse over, as it should, though the pointer cursor does not appear until I mouse over the text which is not what I want. I want the

2条回答
  •  迷失自我
    2021-01-28 12:10

    Just add cursor:pointer to your .navButton:hover class Here's an updated fiddle: http://jsfiddle.net/mrchief/7SV5K/

    This will solve your style issue. However, for button click to happen, you need attach a click handler for the li too.

提交回复
热议问题