How to overlay div / box on mouseover?

前端 未结 3 2243
借酒劲吻你
借酒劲吻你 2021-02-15 11:14

I have a link and when user hover mouse over it, it should display a box (div) under the link. The box should overlay whatever is under it. How can I do it using css or javascri

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-15 12:01

    $("#id").mouseover(function(){
       $("a[rel='#petrol']").overlay().load();
    });
    $("#id").mouseout(function(){
       $("a[rel='#petrol']").overlay().close();
    });
    

提交回复
热议问题