JS实现仿百度文库评分功能

前端之家收集整理的这篇文章主要介绍了JS实现仿百度文库评分功能前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

百度文库分享平台大家都知道,今天小编通过一段实例代码给大家介绍基于js实现百度文库评分功能,先给大家展示效果图吧。

代码如下所示:

无<a href="https://www.jb51.cc/tag/biaoti/" target="_blank" class="keywords">标题</a>文档 *{padding:0;margin:0;} #content{width:700px;height:50px;border:1px solid #ccc;margin:50px auto;line-height:50px;} #content span.title{display:line-block;width:100px;height:50px;line-height:50px;font-size:20px;font-weight:bold;color:#FF9933;} #content ul.stars {display:inline-block;width:160px;height:50px;line-height:50px;cursor:pointer;} #content ul.stars li {font-size:30px;color:#ccc;} #content p {display:inline-block;width:80px;height:50px;line-height:50px;font-size:20px;font-weight:bold;color:#ff9933;} #content .tip{display:inline-block;height:45px;border:1px #ccc red;background:#FFFFCC; visibility:hidden;} #content .tip span {display:inline-block;height:40px;line-height:40px;padding:0px 10px;;} #content .tip ul {display:inline-block;position:relative;} #content .tip ul i{position:absolute;top:70%;right:18%;} .red {color:red;margin-left:10px;} .orange{color:orange;}
总体评价:

score">待评价

提示:点击小星星可以打分

以上所述是小编给大家介绍的JS实现仿百度文库评分功能。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持

原文链接:https://www.f2er.com/js/42567.html

猜你在找的JavaScript相关文章