gt_grid.css

来自「纯JS的数据列表 6000行数据 需要9秒」· CSS 代码 · 共 806 行

CSS
806
字号
body {
	font-size:12px;	
}

div {
	font-size:12px;	
	padding: 0px;
	margin: 0px;
}


form {
	padding: 0px;
	margin: 0px;
}

td {
	font-size:12px;	
}

/* ========================= */


.gt-grid {
	overflow:hidden;
	position: relative;
}

.gt-b-ie {}

.gt-b-safari{}


.gt-b-ie table {
	table-layout: fixed;
}

.gt-viewport {
	qposition: relative;
	border:0px red solid;
	left:0px; 
	top: 0px;
	overflow: hidden;
}


.gt-head-div {
position: relative;
z-index:2;
	overflow:hidden;
	width:100%;
	padding-left:0px;
	background: #ebeadb url(./skin/default/images/grid-hrow-o.gif) repeat-x;

}


.gt-body-div {
	position: relative;
	overflow: auto;
	padding-left:0px;
	width:100%;
	height:100%;
	scrollbar-arrow-color:#999999;
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color:#DDDDDD;
	scrollbar-shadow-color:#DDDDDD;

	scrollbar-3dlight-color:#C0C0C0;
	scrollbar-darkshadow-color:#C0C0C0;

	scrollbar-track-color:#E9E9E9;
}


.gt-head-table , .gt-table {
 table-layout:fixed;
  margin-left:0px;
}




/*  ====================== */



.gt-hd-row {
	
}


.gt-row {
	background-color:#ffffff;
}

.gt-row-even {
	background-color:#f3f6f5;
}


.gt-hd-row TD ,.gt-row TD {
	font:normal 12px  tahoma,verdana,arial, helvetica, sans-serif;
	height:19px;
	vertical-align: top;
	overflow:hidden;
	white-space:nowrap;
	word-break:keep-all;
	word-wrap:normal;

	border-right: 1px solid #668899;
	border-bottom: 1px solid #668899;

	text-overflow: ellipsis;
	-o-text-overflow: ellipsis;

	-moz-outline: none;
	-moz-user-focus: normal;
}


.gt-b-ie .gt-hd-row TD ,.gt-b-ie .gt-row TD {
height:21px;
}
.gt-b-safari .gt-hd-row TD ,.gt-b-safari .gt-row TD {
height:21px;
}

.gt-hd-row TD {
	background: #ebeadb url(./skin/default/images/grid-hrow.gif) repeat-x;
}

.gt-hd-row .gt-hd-row-over {
	background: #ebeadb url(./skin/default/images/grid-hrow-o.gif) repeat-x;
}

/*  ====================== */

.gt-hd-inner , .gt-inner {
	display: block;
	padding : 1px 2px 1px 2px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
}

.gt-b-ie .gt-hd-inner , .gt-b-ie .gt-inner {
	width: 100%;
}


.gt-hd-inner {
	position: relative;
	cursor: default;
	height:100%;
	qtext-align:center;
	-moz-user-select: none;
	-khtml-user-select: none;
}


/* =============================== */



.gt-split-line {
	width: 2px;
	qbackground: url(./skin/default/images/grid-split.gif)  repeat-y center;
	background: #cccccc;
	border: 0px solid red;
	z-index: 13;
	display: none;
	overflow: hidden;
	cursor: col-resize;
	position: absolute;
	top: 0px;
	height: 50px;
	-moz-user-select: none;
    -khtml-user-select: none;

}

.gt-hd-tool {
	display: block;
	position: absolute;
	z-index: 2;
	height: 20px;
	top: 2px;
	right: 0px;
}

.gt-hd-tool span {
	float:left;
	font-size:1px;

}

.gt-hd-split {
	cursor: col-resize;
	height: 16px;
	width:4px;
	background: url(./skin/default/images/grid-split.gif)  repeat-y center center;


}

.gt-b-ie .gt-hd-split {
background-position: 2px center;
}

.gt-hd-icon {
	position: relative;	
	left:11px;
	width:11px;
	height:10px;
	background: url(./skin/default/images/sort_asc_desc.gif) no-repeat;
	background-position: 11px 11px;
}


.gt-hd-asc {
	background-position: 0px 0px ;
}

.gt-hd-desc {
	background-position: -11px 0px ;

}


.gt-hd-button {
	position: relative;	
	top:8px;
	width:11px;
	height:10px;
	background: url(./skin/default/images/ns-expand.gif) no-repeat ;
	background-position: 11px 11px;
}

.gt-hd-row-over .gt-hd-button {
background-position: 0px 0px;
cursor:pointer;
}


.gt-split {
	width: 6px;
	background-image: url(./skin/default/images/grid-split.gif);
	background-position: center center;
	display: block;
	font-size: 1px;
	overflow: hidden;
	background-repeat: no-repeat;
	top: 2px;
	height: 16px;
    -moz-user-select: none;
    -khtml-user-select: none;
}




/* =================================*/


.gt-col-lock {
 position: absolute;
 top:0px;
 z-index:15;
 border-right:1px solid #ee9966;
 	overflow: hidden;
	display:none;
}

.gt-toolbarbox {
	position: absolute;
	width:100%;
	height:24px;
	left:0px;
	bottom:0px;
	display:block;
	overflow:hidden;
	cursor:default;
	z-index:11;
	border:0px;
	border-top:0px solid #cccccc;
}

.gt-toolbar {
	height:23px;
	margin-top:1px;
}

.gt-tool-resize {
	position: absolute;
	cursor:se-resize;
	bottom:-1px;
	right:-1px;
	width:11px;
	height:10px;
	background-position : 0px 0px;
	z-index:15;
	font-size:1px;
	
    -moz-user-select: none;
    -khtml-user-select: none;
}

.gt-tool-resize-rect {
	position: absolute;
	top:5px;
	z-index:13;
	display:none;
background-color: #dde0e3;
border:2px #3366cc solid;
	-moz-user-select: none;
    -khtml-user-select: none;
    -moz-opacity: 0.5;
    opacity: .50;
    filter: alpha(opacity=50);

}


.gt-scrolltool-v {
	position: absolute;
	display:block;
	right:0px;
	top:0px;
	z-index:1;
	overflow: hidden;
}

.gt-scrolltool-v div {
	height: 10px;
	font-size: 1px;
	padding:0px;
	margin:0px;
	width:15px;


}

.gt-scrolltool-top {
	cursor:pointer;
	background-position : center center;
}

.gt-scrolltool-bottom {
	cursor:pointer;
	background-position : center center;
}



.gt-head-ghost {
	position: absolute;
	cursor:move;
	z-index:12;
	top: 1px;
	height:20px;
	display : none;
	color: #000000;
	background-color:#cccccc;

	font:normal 12px  tahoma,verdana,arial, helvetica, sans-serif;
	font-weight:bold;

	line-height:16px;
    white-space: nowrap;
	vertical-align: top;

	overflow:hidden;

	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;

	-moz-outline: none;
	-moz-user-focus: none;

	-moz-user-select: none;
	-khtml-user-select: none;

    -moz-opacity: 0.6;
    opacity: .60;
    filter: alpha(opacity=60);

}

.gt-b-safari .gt-head-ghost {
cursor:default;
}

.gt-head-ghost span {
	display: block;
	white-space:nowrap;
	padding: 3px 3px 3px 4px;
	-moz-user-select: none;
	-khtml-user-select: none;

}

.gt-columnmoves  {
	position: absolute;
	z-index:8;
	font-size:1px;
	display: block;
	overflow:hidden;
	top: 0px;
	height:21px;
	width:2px;
	display : none;
	background-color:#6693ff;


}



/*  ====================== */

.qgt-hd-icon {
	display: block;
	float:left;
	width:16px;
	height:16px;
	font-size:1px;
	vertical-align: middle;
	overflow:hidden;
	border:0px red solid;
	-moz-user-select: none;
	-khtml-user-select: none;
}



.gt-popmenu {
display:block;
	width:130px;
	border:1px solid #99bbdd;

 position: absolute;

	z-index:20;
	background: white ;
}

.gt-menuitem {
display:block;
height:23px; 
cursor:pointer;
border:0px solid red;
}

.gt-menu-activemenu {
background-color:  #eef3ff;
}

.gt-menu-icon {
	display: block;
	float:left;
height:23px; 
width:20px;
	font-size:1px;
	vertical-align: middle;
	overflow:hidden;
	-moz-user-select: none;
	-khtml-user-select: none;
		background-color:  #ddeeff;
	background-repeat:	no-repeat ;
		background-position : center center;
			border:0px red solid;

}
.gt-checkboxtext {
	display: block;
	float:left;
padding: 5px 0px 0px 2px;
vertical-align: middle;
overflow:hidden;
border:0px solid green;
}

.gt-aftericon {
	display: block;
	float:right;
	width:0px;
	height:23px;
	font-size:1px;
	vertical-align: middle;
	overflow:hidden;
	border:0px red solid;
	-moz-user-select: none;
	-khtml-user-select: none;
		background-repeat:	no-repeat ;
		background-position : center center;
		border:0px solid blue;
}

.gt-menu-parent {
width:12px;
	background-image: url(./skin/default/images/menu-parent.gif) ;


}
.gt-icon-lock {
	background-image: url(./skin/default/images/menu-icon-lock.gif);

}
.gt-icon-skin {
	background-image: url(./skin/default/images/icon-themes.gif);

}
.gt-icon-hidecol {
	background-image: url(./skin/default/images/menu-icon-hidecol.gif);

}
.gt-icon-groupcol {
	background-image: url(./skin/default/images/column-group.gif);

}

.gt-icon-checkbox {
	background-image: url(./skin/default/images/checked.gif);
}
.gt-icon-radiobox {
	background-image: url(./skin/default/images/radiochecked.gif);
}


.gt-icon-unchecked {
background-image: url(./skin/default/images/unchecked.gif);
}


.gt-edit-bar {
 position: absolute;
 top:-50px;
cursor:default;
 z-index:13;
 border:0px;
 border-top:0px solid #ee9966;
 border-bottom:1px solid #ee9966;
background-color:#ffffff;
}
.gt-edit-bar tr {

	background-color:#e3f0dd;
}


.gt-editor-text {
	display: block;
	float:left;
	border:1px solid #558899;
	width:95%;
	height:18px;
	font:normal 11px  tahoma,verdana,arial, helvetica, sans-serif;
	vertical-align: middle;
	margin:0px;
	margin-right:3px;
	padding:1px;
}

.gt-editor-date{
background-color:transparent;
background-image:url(./skin/default/images/calendar.gif);
background-position: center;
background-repeat: no-repeat;
border: none 0px  #dddddd;
width:16px;
height:16px;
display: block;
cursor:pointer;
}

.gt-editor-err {

	border:1px solid red;
}

.gt-cell-updated {
	background-color:#dde6e3;

}

.gt-toolbar-comp {
display: block;
float:left;
}



.gt-common-button {
display: block;
float:left;
padding:0px;
vertical-align: middle;
border:0px solid #336699;
width:19px;
height:19px;
padding:0px;
background-color:transparent;
margin:1px;
font-size:1px;
	-moz-user-select: none;
    -khtml-user-select: none;
}

.gt-common-button div , .gt-common-button button{
width:100%;
height:100%;
cursor:pointer;
font-size:1px;
border:0px;
}

.gt-common-button-over {
	background : url(./skin/default/images/button_bg.gif) no-repeat center center;
}

.gt-common-button-down {
	background : url(./skin/default/images/button_down_bg.gif) no-repeat center center;
}



.gt-button-disable {
    -moz-opacity: 0.4;
    opacity: .40;
    filter: alpha(opacity=40);
}

.gt-button-split {
width:5px;
height:19px;
vertical-align: middle;
background : url(./skin/default/images/grid-split.gif)  no-repeat center center
}


.gt-first-page {
background : url(./skin/default/images/firstPage.gif) no-repeat center center;
}


.gt-prev-page {
background : url(./skin/default/images/prevPage.gif) no-repeat center center;
}

.gt-next-page {
background : url(./skin/default/images/nextPage.gif) no-repeat center center;
}

.gt-last-page {
background : url(./skin/default/images/lastPage.gif) no-repeat center center;
}

.gt-goto-page {
background : url(./skin/default/images/gotoPage.gif) no-repeat center center;

}

.gt-toolbar-comp select {
	display: block;
	float:left;
	border:1px solid #558899;
	width:40px;
	height:16px;
	font:normal 11px  tahoma,verdana,arial, helvetica, sans-serif;
	vertical-align: middle;
	margin-top:1px;
	text-align:right;
}

.gt-input-page {
	display: block;
	float:left;
	border:1px solid #558899;
	width:25px;
	height:15px;
	font:normal 11px  tahoma,verdana,arial, helvetica, sans-serif;
	vertical-align: middle;
	margin-top:3px;
	padding:0px;
	text-align:right;
}

.gt-page-state {
display: block;
float:right;
height:19px;
color:#335566;
font:normal 11px  tahoma,verdana,arial, helvetica, sans-serif;

}

.gt-tool-mainmenu {
background : url(./skin/default/images/mainmenu.gif) no-repeat center center;
}

.gt-tool-add {
background : url(./skin/default/images/tool-add.gif) no-repeat center center;

}

.gt-tool-del {
background : url(./skin/default/images/tool-del.gif) no-repeat center center;

}

.gt-tool-save {
background : url(./skin/default/images/tool-save.gif) no-repeat center center;
}

.gt-tool-refresh {
background : url(./skin/default/images/tool-refresh.gif) no-repeat center center;
}

.gt-tool-exp-print {
background : url(./skin/default/images/print.gif) no-repeat center center;
}
.gt-tool-exp-xls {
background : url(./skin/default/images/xls.gif) no-repeat center center;
}

.gt-tool-exp-csv {
background : url(./skin/default/images/csv.gif) no-repeat center center;
}

/* ========================== */


.breakline {
	white-space:normal;
	word-break:break-all;
	word-wrap:break-word;
}

 .nobreakline {
	white-space:nowrap;
	word-break:keep-all;
	word-wrap:normal;
}



/* ===================== */


.gt-scrolltool-v {
padding:0px;
margin:0px;
	background-color: #eeeeee;
	border:0px solid #ff0000;
	border-left:0px solid #ff0000;

}

.gt-scrolltool-top {
	background: url(./skin/default/images/scroll2top.gif) no-repeat ;
	background-position : center 1px;
}

.gt-scrolltool-bottom {
	margin-top:0px;
	background: url(./skin/default/images/scroll2bottom.gif) no-repeat ;
	background-position : center 1px;

}

.gt-toolbarbox {
	background-image:url(./skin/default/images/footerBg.gif); 
	background-position : 0px 0px;
}

.gt-tool-resize {
	background-image:url(./skin/default/images/tool-resize.gif); 
	background-repeat: no-repeat;

}





.gt-row-over td {
	background-color: #ddeeff;
}

.gt-row-selected td {
	background-color: #ffeedd;	
}

.gt-cell-group {
	background-color: #eef6ff;
}

.gt-row-selected td.gt-cell-group {
	background-color: #eef6ff;
}

.gt-row-over td.gt-cell-group {
	background-color: #eef6ff;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?