˶®css°ïÎÒ¿´¿´É¶Òâ˼
<style type ="text/css">
.fixedHeaderTr { POSITION: relative; ; TOP: expression(this.offsetParent.scrollTop) }
.mainDiv { SCROLLBAR-FACE-COLOR: #9999ff; OVERFLOW: auto ; ; WIDTH: expression(document.body.clientWidth-20); ; HEIGHT: expression((document.body.clientHeight-this.offsetTop-20>this.children[0].offsetHeight)?(this.children[0].offsetHeight+20) : (document.body.clientHeight-this.offsetTop-20)) }
</style>
Õâ²»¾ÍÊǶ¨Î»Ã´?jsµÄ±í´ïʽ°¡
CSS code:
input[type="text"] ,input[type="password"]{
star:expression(onfocus=function(){this.style.backgroundColor="#DCE1EB";this.select();}
,onblur=function(){this.style.backgroundColor="white"});
}
ÏÖÔÚ²»ÍƼöÔÚcssÖÐÓà expressionÖ®ÀàµÄ±í´ïʽÁË
¸Õ˯ÐÑ£¬¿´²»Çå³þ£¬¶¥¶¥ËãÄñ
ͦ¸´ÔÓµÄCSS£¬²»ÊÇÈ«²¿¶®£¬°ï¶¥£¬¹þ¹þ
///////////////
ѧϰÁË£¬ÔÀ´CSSÀﻹÄÜÕâÑùµÄ
ÔÚCSSÀï¼ÓÈëÁËJS½Å±¾¡£Äľäû¿´¶®£¿
ÉèÖÃmainDivĬÈÏµÄ¿íµØºÍ¸ß¶È
document.body.clientHeight- this.offsetTop-20
bodyµÄ¸ß¶È - £¨offsetTop-20£©
·´Õý¶¼ÊÇÕâÑù°¡ Äã×Ô¼º¿ÉÒԺúÃÑо¿Ï°¡
¾ÍÊǶ¨Î»£¬±ÈÈç˵ÄãµÄgridviewÍùϹö¶¯µÄʱºò£¬±êÌâ»á±»Òþ²Ø£¬ÓÃÕâÖÖ±í´ïʽ¾Í¿ÉÒÔ±£Ö¤±êÌâÒ»Æð¹ö¶¯
Ó¦¸ÃÊÇTrºÍdivÔÚÍøÒ³Öе
Ïà¹ØÎÊ´ð£º
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......
ÈçÌ⣡£¡ ×îºÃÄܹ»¶àä¯ÀÀÆ÷Ö§³Ö£¡£¡£¡
CSS code:
<style type="text/css">
<!--
.fixTop {
Z-Index:102;
position:relative;
Top:expression(this.offsetPare ......
ÈçÒ»¸öCSS´úÂëΪ#checkoutShipTo_giftsoflady, .checkoutBillTo_giftsoflady {}Òª±ä³É#checkoutShipTo_xxxxx, #checkoutBillTo_xxxxx{}
cssÊéд¸ñʽ²»¹Ì¶¨.
ÓпÉÄÜÊÇ#id{},.class{}
Ò²ÓпÉÄÜÊÇ#id input{}
·´ÕýÊ ......