Html
    Css
    Js

    
                        
#container,#tip-board {
	font-family:"微软雅黑";
}
#container {
	display:flex;
	width:98%;
	/*height:500px;
	*/
			/*border:1px solid red;
	*/
}
.content {
	display:flex;
	/*border:1px solid red;
	*/
}
#content-view1 {
	flex-grow:1;
}
#content-view2 {
	flex-grow:12;
}
#content-view3 {
	flex-grow:4;
}
table {
	/*width:100%;
	*/
}
#content-view2 div {
	flex-grow:1;
}
#content-view3 div {
	flex-grow:1;
}
#content-view2 table tr:nth-child(1) th,#content-view2 table tr:nth-child(2) th {
	text-align:center;
}
#content-view3 table tr:nth-child(1) th,#content-view3 table tr:nth-child(2) th {
	text-align:center;
}
td {
	text-align:right;
}
#content-view2 td:hover,#content-view3 td:hover {
	cursor:pointer;
	background-color:yellow;
}
.row-r th {
	text-align:right;
}
.link-row th:hover {
	cursor:pointer;
	background-color:#18E690;
}
#x-indicator,#y-indicator,#tip-board {
	position:absolute;
}
#x-indicator {
	top:0;
	left:0;
	width:300px;
	height:2px;
	border:1px dashed red;
}
#y-indicator {
	top:0;
	left:0;
	width:2px;
	height:300px;
	border:1px dashed red;
}
#tip-board {
	width:145px;
	height:100px;
	background-color:#fff;
	border:1px solid #ccc;
	display:none;
	padding-left:5px;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

自定义带指示器的H5表格

1.注释changexyindicator(e); 和 resetxyindicator(); 可以屏蔽x-y轴向红色轴

0