How to make a DIv with a Rails Link clickable?

后端 未结 3 856
南旧
南旧 2020-12-30 00:18

I have a large div:

.limeskin:hover {
  background: #eee;
  cursor: pointer;
  display: block;
}

that I want to be clickable. Because I\'m

3条回答
  •  醉梦人生
    2020-12-30 00:55

    Use javascript (I recommend jQuery) to make the action actually happen and CSS hover selector to modify the div background and the cursor (to change the cursor from an arrow to a hand).

提交回复
热议问题