html頁面中常用的一些小方法整理
2019-10-26 17:26:27
供稿:網(wǎng)友
在<Head>標(biāo)簽中加
<meta http-equiv="pragma " content="no-cache">
<meta http-equiv="Cache-Control " content="no-cache,must-revalidate">
<meta http-equiv="expires " content="Wed,26 Feb 1978 08:21:57 GMT ">
如何用JQuery的ajax跳轉(zhuǎn),可以這樣清理
//ajax請(qǐng)求不緩存
$.ajaxSetup({ cache: false
});
MaintainScrollPositionOnPostback="true"
如內(nèi)容超出單元格,則隱藏
style="TABLE-LAYOUT: fixed"
讓彈出窗口總是在最上面: <body onblur="this.focus();">
不要滾動(dòng)條? 讓豎條沒有: <body style='overflow:scroll;overflow-y:hidden'> </body>
讓橫條沒有: <body style='overflow:scroll;overflow-x:hidden'> </body>
兩個(gè)都去掉?更簡(jiǎn)單了 <body scroll="no"> </body>
怎樣去掉圖片鏈接點(diǎn)擊后,圖片周圍的虛線? <a href="#" onFocus="this.blur()"><img src="logo.jpg" border=0></a>
電子郵件處理提交表單 <form name="form1" method="post" action="mailto:****@***.com" enctype="text/plain">
<input type=submit> </form>
在打開的子窗口刷新父窗口的代碼里如何寫? window.opener.location.reload()
如何設(shè)定打開頁面的大小 <body onload="top.resizeTo(300,200);">
在頁面中如何加入不是滿鋪的背景圖片,拉動(dòng)頁面時(shí)背景圖不動(dòng) <html><head> <STYLE> body {background-image:url(logo.gif); background-repeat:no-repeat; background-position:center } </STYLE> </head> <body bgproperties="fixed" > </body> </html>
各種樣式的光標(biāo) auto :標(biāo)準(zhǔn)光標(biāo)
default :標(biāo)準(zhǔn)箭頭
hand :手形光標(biāo)
wait :等待光標(biāo)
text :I形光標(biāo)
vertical-text :水平I形光標(biāo)
no-drop :不可拖動(dòng)光標(biāo)
not-allowed :無效光標(biāo)
help :?幫助光標(biāo)
all-scroll :三角方向標(biāo)
move :移動(dòng)標(biāo)
crosshair :十字標(biāo) e-resize n-resize nw-resize w-resize s-resize se-resize sw-resize
本機(jī)ip<%=request.servervariables("remote_addr")%>
服務(wù)器名<%=Request.ServerVariables("SERVER_NAME")%>
服務(wù)器IP<%=Request.ServerVariables("LOCAL_ADDR")%>
服務(wù)器端口<%=Request.ServerVariables("SERVER_PORT")%>
服務(wù)器時(shí)間<%=now%> IIS
版本<%=Request.ServerVariables"SERVER_SOFTWARE")%>
腳本超時(shí)時(shí)間<%=Server.ScriptTimeout%>
本文件路徑<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%>
服務(wù)器CPU數(shù)量<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%>
服務(wù)器解譯引擎<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion