最新回答 / 慕田峪3126352
我自己跟着打的<!DOCTYPE html><html><head><meta charset="utf-8"><title>星级评分-第五种实现方式</title><style type="text/css">body,ul,li{padding: 0;margin: 0;}li{list-style-type: none;}.rating{position: relative;width:160px;backgroun...
2019-03-13
最新回答 / Jade2_
.rating-item:hover{ background:url(images/rating4/rating.png) repeat-x 0 -30px!important; left: 0; z-index: 2; }我也是,我觉得是这里 .rating-item:hover移动到了已经把第三可改为z-index:2了,而选中的那颗在z-index:1
2018-01-18
最新回答 / Zz皓
左看右看没看出哪里不对,要不试试我的代码:<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>星级评分之第四种实现方式</title> <style> .rating { position: relative; width: 300px; height: 56px; b...
2017-09-08
最新回答 / xiangguixing
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>第四种实现方法</title><style type="text/css">.rating{position: relative;width: 130px;height: 26px;background: url(img/rating.png) repeat-x;margin:100px auto;overflo...
2017-07-16