pbootcms程序的詳情頁模板想要實現(xiàn)多版塊展現(xiàn),說不清楚,我截圖在里面
問題描述
現(xiàn)在的詳情頁頁面如下:
想要改成這樣的詳情頁模板:
就是可以在詳情頁鼠標(biāo)移動到哪個就會顯示改版塊內(nèi)容。
演示地址:http://www.cssmoban.com/preview/index.html?url=http://demo.kangjingept.com:8020/cssthemes6/zly2021010120_17/index.html&id=17851&tid=20125072756579
希望哪位老師或者大神幫助我一下,給錢也行啊
問題解答
回答1:鼠標(biāo)移動是js效果,你跟著這個模板寫效果呀。。 先把樣式寫好。
下面是鼠標(biāo)事件,寫好樣式,在寫事件
<script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){ $("p").mouseover(function(){ $("p").css("background-color","yellow"); }); $("p").mouseout(function(){ $("p").css("background-color","#E9E9E4"); });});
