It's my evolution lab…
常用JS+CSS
.maskbox {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index:1000;
background: #000;
filter:alpha(opacity=60); /* IE */
opacity: 0.6; /* 支持CSS3的浏览器(FF 1.5也支持)*/
-moz-opacity: 0.6; /* Moz + FF */
}
.outer{height:0px; width:0px;top:50%; left:50%;position:absolute;z-index:2000;}
.middlebox{width:600px;height:400px;margin:-200px -300px;background:#fff;border:5px solid #8b0000;position:absolute;}
.hypertensionlist table td p {width:100px;height:20px;overflow:hidden;/*注意不要写在最后了*/white-space: nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;}
.addpopup {width:600px;height:320px;background:url(../images/poptitlebg.gif) repeat-x left top;}
.addpopup h2 {line-height:30px;padding-left:24px;font-weight:bold;font-size:14px;color:#8b0000;position:relative;}
.addpopup h2 a {position:absolute;right:10px;top:4px;}
.addpopup table {margin:10px auto 0;}
.addpopup table td {text-align:left;padding-left:10px;}
.addpopup table td span {color:#333;padding-left:10px;}
.addpopup table td textarea {margin:5px 0;border:1px solid #c7c7c7;}
.middlebox div.buttonbox {width:98%;margin:5px 0 0;}
/**********Table**********/
table {width:98%;height:auto;margin:0 auto;border-collapse:collapse;border-top:1px solid #ccc;border-left:1px solid #ccc;}
caption{height:24px;line-height:24px;text-align:left;padding:0 0 0 24px;font-weight:bold;font-size:14px;background:url(../images/icon.gif) no-repeat left -524px;}
caption span span {color:red;}
th,td{height:30px;border-bottom:1px solid #ccc;border-right:1px solid #ccc;text-align:center;}
th {height:26px;color:#8b0000;background:url(../images/trbg.gif) repeat-x left top;border-bottom:none;}
td span {color:red;}
tr.graytr td {background-color:#f0f0f0;}
tr.whitetr td {background-color:white;}
tr.overtr td {background-color:#707070;color:white;}
tr.overtr td span {color:white;}
tr.overtr td a:link {color:white;}
tr.overtr td a:visited {color:white;}
tr.overtr td a:hover {color:white;}
//隔行换色 & 鼠标选中变色