博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
js表格拖拽
阅读量:4354 次
发布时间:2019-06-07

本文共 3049 字,大约阅读时间需要 10 分钟。

html部分

  1. 序列
  2. 名称
  3. 数量
  4. 单价(Q点)
  5. 总计(Q点)
  • 1
  • 农场话费A
  • 2
  • 50
  • 100
  • 2
  • 飞车道具C
  • 1
  • 80
  • 80
  • 3
  • 空间K
  • 1
  • 120
  • 120
  • 4
  • 农场狗粮C
  • 4
  • 60
  • 240
  • 5
  • 音速种子
  • 2
  • 110
  • 220
  • 6
  • 农场化肥D
  • 5
  • 60
  • 300
  • 7
  • AVA装扮C
  • 1
  • 300
  • 300
  • 8
  • 三国道具C
  • 15
  • 60
  • 900
  • 9
  • DNF道具B
  • 4
  • 300
  • 1200
  • 10
  • 农场化肥H
  • 6
  • 80
  • 120
  • 11
  • 农场化肥B
  • 1
  • 80
  • 80
  • 12
  • Q宠元宝
  • 100
  • 1
  • 100
  • 13
  • 三国道具K
  • 9
  • 20
  • 180

css部分

* {
margin: 0; padding: 0;}body {
font-family: "microsoft yahei"; background-color: #eee; user-select: none;}#chenkbox {
margin: 100px auto; width: 800px; position: relative; }#tableSort{
border-right:#0066cc 1px solid; border-bottom: #0066cc 1px solid; height: 434px;}li{
list-style: none;}#box {
position: absolute; display: none; background: #fff; text-align: center; top: 0; background-color: #000; background-color: rgba(0,0,0,0.8); color: #fff; height: 100%; cursor: move;}#box p {
line-height: 2;}#chenkbox ol{
height: 30px; line-height: 30px;}#chenkbox ul{
width: 100%; height: 30px; cursor: move; line-height: 30px; }#chenkbox li{
width: 19.87%; float: left; border-top: #0066cc 1px solid; border-left: #0066cc 1px solid; text-align: center;}

js部分

var ochek=document.getElementById("chenkbox");    var ul=document.getElementsByTagName('ul');     var  box=document.getElementById("box");     var arr=[];    for(var i=0;i

转载于:https://www.cnblogs.com/aSnow/p/8808210.html

你可能感兴趣的文章
AlertDialog的onCreateDialog与onPrepareDialog用法
查看>>
swift菜鸟入门视频教程-12-21讲
查看>>
PL/SQL 异常处理程序
查看>>
javascript小白学习指南1---0
查看>>
div:给div加滚动栏 div的滚动栏设置
查看>>
java随机函数使用方法Random
查看>>
链表中环的入口结点
查看>>
凤姐讲学英语
查看>>
ActionBar
查看>>
5种方法实现数组去重
查看>>
2~15重点语法
查看>>
flask中的CBV,flash,Flask-Session,WTForms - MoudelForm,DBUtils 数据库连接池
查看>>
最近整理的提供免费代理列表的几个网站
查看>>
探偵ガリレオー転写る2
查看>>
快速排序算法C++实现[评注版]
查看>>
七尖记
查看>>
SAP(最短增广路算法) 最大流模板
查看>>
用极大化思想解决矩形问题学习笔记
查看>>
Django REST Framework 简单入门
查看>>
Hibernate中fetch和lazy介绍
查看>>