* {
padding: 0;
margin: 0;
}
.comment {
font-size: 40px;
color: #ff3100;
}
.comment li {
float: left;
cursor: pointer;
}
ul {
list-style: none;
}
.current{}
$(window).ready(function () {
var wjx_none = '☆'; // 空心五角星
var wjx_sel = '★'; // 实心五角星
$(".comment li").on("mouseenter",function () {
$(this).text(wjx_sel).prevAll("li").text(wjx_sel).end().nextAll("li").text(wjx_none);
});
$(".comment li").eq(0).on("mouseout",function () {
$(this).text(wjx_none)
});
$(".comment li").on("click",function () {
$(this).addClass("current")
$(this).text(wjx_sel).prevAll("li").text(wjx_sel).end().nextAll("li").text(wjx_none);
});
});
• ☆
• ☆
• ☆
• ☆
• ☆
java做五角星代码 五角星html代码
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【Canvas与艺术】压边五角星
用Html5/Canvas绘制精确压边五角星。
canvas 五角星 -
【Canvas与艺术】不忘初心之五角星
用Html5/Canvas绘制红黄黑三色五角星。
canvas 五角星 -
绘制五角星
绘制五角星
C语言 绘图 数组 #include 初始化