∥″可乐〃∥

让我展望未来,网络是我不变的终结者!

« 在同一个CSS页面调用不同的样式同一页面调用不同的CSS样式表文件 »

Asp同一页面调用不同的CSS样式表文件

这方法是群里,christina告诉我的

<%
strtemp = Request.ServerVariables("HTTP_USER_AGENT")
strtemps=Split(strtemp,";")
If InStr(strtemps(1),"MSIE")>0 then
versions=Trim(Left(Replace(strtemps(1),"MSIE",""),6))
end if
versions = left(versions,1)
select case versions
case 5
csstmp = "11.css"
case 6
csstmp = "22.css"
case 7
csstmp = "33.css"
case 8
csstmp = "44.css"
end select
%>
<LINK href=<%=csstmp%> type=text/css rel=stylesheet>


  • quote 1.KK
  • 如果不好用 把versions = left(versions,1)
    换成versions =cint( left(versions,1))
  • 2009-4-17 8:33:19  RevertComment
Comments.

◎ welcome to participate in the discussion

日历

Comments.

Previous.

ADMIN. | EMAIL. | ABOUT.

Powered By Z-Blog 1.8 Spirit Build 80722Copyright © 2006-2011 可乐Blog Kele520.Com All Rights Reserved.[皖ICP备 06001314号]