|
|
@@ -645,6 +645,7 @@ function bindEventYS() {
|
|
|
$(item).after(HtmlStr);
|
|
|
}
|
|
|
});
|
|
|
+ $("body").append("<div id='FixedId' style='background-color:red;color:black;position:fixed;left:100px;top:100px;width:200px;height:50px;'></div>")
|
|
|
$(".container-table").on("touchstart", function () {
|
|
|
var TableWidth = isNaN(parseFloat($(this).find("table").css("width"))) ? 0 : parseFloat($(this).find("table").css("width"));
|
|
|
if (TableWidth > bodyWidth) {
|
|
|
@@ -655,6 +656,7 @@ function bindEventYS() {
|
|
|
var ScrollLeft = isNaN(parseFloat($(this).scrollLeft())) ? 0 : parseFloat($(this).scrollLeft());
|
|
|
var SSWidth = 2 * bodyWidth - TableWidth; // 显示滚动条宽度
|
|
|
var ShowSBarName = $(this).next().attr("class");
|
|
|
+ $("#FixedId").text(SSWidth+ "px"+ "," +ScrollLeft + "px");
|
|
|
if (ScrollLeft >= 0 && ShowSBarName == "ShowSBar" && $(this).next().find(".ShowSBarC").length > 0) {
|
|
|
// 有滚动条的进行移动
|
|
|
$(this).next().find(".ShowSBarC").css("left", ScrollLeft + "px");
|