diff --git a/css/default.css b/css/default.css index c73b038..44a8928 100644 --- a/css/default.css +++ b/css/default.css @@ -268,7 +268,16 @@ a, abbr, address, b, blockquote, body, caption, cite, code, dd, del, dfn, div, d overflow: hidden; } .main_tool table td select { padding:3px; border:1px solid #ddd; padding-right:10px; } - .main_tool table td .maodian { float:left; padding:5px; margin-right:10px; cursor:pointer; width:60px;border:1px solid #ddd; text-align:center; opacity:0.3; } + .main_tool table td .maodian { + float: left; + padding: 5px; + margin-right: 10px; + cursor: move; + width: 200px; + border: 1px solid #ddd; + text-align: center; + opacity: 0.3; + } .main_tool table td .maodian_hover { padding: 5px; margin-right: 10px; diff --git a/js/index.js b/js/index.js index 6a12347..e4011c8 100644 --- a/js/index.js +++ b/js/index.js @@ -51,7 +51,7 @@ function SetMao(obj, index) { } $(obj).attr("class", "maodian_hover"); - $(".main_papermain").append("
" + $(obj).html() + "
"); + $(".main_papermain").append("
" + $(obj).html() + "
"); $("#draggable_" + index).draggable({ containment: ".main_papermain" }); @@ -77,7 +77,7 @@ function SetXuehao(obj) { } html += ""; - $(".main_papermain").append("
" + html + "
"); + $(".main_papermain").append("
" + html + "
"); $("#xuehaoTable").draggable({ containment: ".main_papermain" }); $("#xuehaoTable").resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放 } @@ -162,7 +162,7 @@ function SetKeguanTi() { questionHtml = "判断"; } - $(".main_papermain").append("
" + tihaoM + "
" + html + "
"); + $(".main_papermain").append("
" + tihaoM + "
" + html + "
"); $("#keguan_" + tihao).draggable({ containment: ".main_papermain" }); $("#keguan_" + tihao).resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放 var listtypeText = listtype == 0 ? "横向" : "竖向"; @@ -210,7 +210,7 @@ function SetZhuguanTi() { var lineWh = "width:200px;height:90px;"; lineWhTx = "填空" } - $(".main_papermain").append("
" + lineWhTx + ":" + zhuguan_tihao + "
"); + $(".main_papermain").append("
" + lineWhTx + ":" + zhuguan_tihao + "
"); $("#keguan_" + zhuguan_tihao).draggable({ containment: ".main_papermain" }); $("#keguan_" + zhuguan_tihao).resizable({ containment: ".main_papermain", handles: 'all' }); @@ -232,7 +232,7 @@ function SetTiaoMa(obj) { else { $(obj).attr("class", "tiaomasz_hover"); } - $(".main_papermain").append("
条码
"); + $(".main_papermain").append("
条码
"); setTimeout(function () { $("#keguan_tiaomashibie").draggable({ containment: ".main_papermain" }); $("#keguan_tiaomashibie").resizable({ containment: ".main_papermain", handles: 'all' }); @@ -1162,10 +1162,10 @@ String.prototype.trim = function (char, type) { //////////// 切换页数 //////////////// function ChangePageNum(anotherTempID) { - if (confirm("当前页未保存,是否继续切换?")){ + //if (confirm("当前页未保存,是否继续切换?")){ var currentURL = window.location.href; var newUrl = currentURL.replace(/(TempID=)\d+/, "$1" + anotherTempID); window.location.href = newUrl; - } + //} } \ No newline at end of file