摘要:利用 CSS 固定位置
#LoadingStatus{ position:fixed !important;/*important針對FF,這樣後面的position描述就沒有用了 */ position:absolute;/* 針對IE */ top:100px; top: expression( ( 100 + ( noValue = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' ); /*上面這個表達式針對IE,FF不認識該表達式,所以top的值就是100px了 */ margin:0 0 0 -110px; width:220px;height:19px; left:50%; text-align:center; border:1px solid red;