第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

問題已經(jīng)解決,粗心造成的錯誤

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Star rating 1</title>


? <style type="text/css">

? body,ul,li{

? ?padding: 0;

? ?margin: 0;

? }

? li{

? ?list-style-type: none;

? }

? .rating{

? ? ? ? width: 165px;

? ? ? ? height: 40px;

? ? ? ? margin: 100px auto;

? ? ? ? overflow: hidden;

? }

? .rating-item{

? ?float:left;

? ?width: 33px;

? ?height: 33px;

? ?background: url(img/star.png) no-repeat;

? ?cursor:pointer;

? }

? </style>


</head>

<body>

<!--The First way-->


<ul class="rating" id="rating">

? ? ? ? <li class="rating-item" title="很不好"></li>

? ? ? ? <li class="rating-item" title="不好"></li>

? ? ? ? <li class="rating-item" title="一般"></li>

? ? ? ? <li class="rating-item" title="好"></li>

? ? ? ? <li class="rating-item" title="很好"></li>

? ? </ul>



? ? <script

? src="https://code.jquery.com/jquery-1.11.3.min.js"

? integrity="sha256-7LkWEzqTdpEfELxcZZlS6wAx5Ff13zZ83lYO2/ujj7g="

? crossorigin="anonymous"></script>


? <script type="text/javascript">

? var num = 2,

? $item = $('#rating').find('.rating-item');


? var lightOn = function(num){

?

? ?? $item.each(function(index){

? ??

? ?if(index < num){

? ?$(this).css('background-position', '0 -68px');

? ?}else{

? ?$(this).css('background-position','0 0');

? ?}

? });

? };

??

lightOn(num);


$item.on('mouseover',function() {

lightOn($(this).index()+1);

}).on('click', function() {

num=$(this).index()+1;

/* Act on the event */

});


$('#rating').on('mouseout',function() {

lightOn(num);


});



? </script>

</body>

</html>


正在回答

2 回答

這個jq庫可以用,下載的沒效果

0 回復 有任何疑惑可以回復我~

什么問題?怎么解決的?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

問題已經(jīng)解決,粗心造成的錯誤

我要回答 關注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號