滑动条拖拽(用户评分练习)——js

本文详细介绍了如何使用JavaScript实现一个滑动条拖拽的用户评分功能,通过实例代码讲解了关键步骤和相关API的使用,帮助读者掌握动态更新评分并展示反馈的技巧。
摘要由CSDN通过智能技术生成
<!DOCTYPE html>
<html charset="UTF-8">
<head>
<title></title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
<!-- 可选的Bootstrap主题文件(一般不用引入) -->
<!--<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">-->
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</head>
<style>
    .container{
        margin-top: 50px;
    }
    .container .unit{
        margin-top: 30px;
    }

    .progress-title{
        display: block;
        width: 25px;
        height: 25px;
        line-height: 25px;
        border: 1px solid #eee;
    }
    .progress-dragbtn{
        position: absolute;
        left: 0; top: 0;
        margin-left: 16px;
        margin-top: -5px;
        width:15px;
        height: 30px;
        background: #3879D9;
        border-radius: 4px;
        cursor: pointer;
    }
</style>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-6 unit">
            <div class="row"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值