本页刷新跳转,想tu.asp?type=xiaoxue时,“小学”加粗;tu.asp?type=zhonhxue时,“中学”加粗;
tu.asp
<!--#include file="conn.asp" -->
<%
rk = Request.QueryString("type")
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from [zaixianliuyan] where type='"&rk&"' ORDER BY ftime DESC"
rs.open sql,conn,1,1
%>
.................
<a href="tu.asp?type=xiaoxue">小学</a> <a href="tu.asp?type=zhonhxue">中学</a> <a href="tu.asp?type=gaozhong">高中</a>
asp链接CSS样式,本页跳转链接加粗。
答案:2 悬赏:20 手机版
解决时间 2021-04-13 00:44
- 提问者网友:练爱
- 2021-04-12 08:34
最佳答案
- 五星知识达人网友:爱难随人意
- 2021-04-12 09:48
tu.asp
<!--#include file="conn.asp" -->
<%
rk = Request.QueryString("type")
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from [zaixianliuyan] where type='"&rk&"' ORDER BY ftime DESC"
rs.open sql,conn,1,1
%>
<style>
a.active{font-weight:bold;}
</style>
<a <%if request("type")="xiaoxue" then response.write "class="active" end if%> href="tu.asp?type=xiaoxue">小学</a> <a <%if request("type")="zhonhxue" then response.write "class="active" end if%> href="tu.asp?type=zhonhxue">中学</a> <a <%if request("type")="gaozhong" then response.write "class="active" end if%> href="tu.asp?type=gaozhong">高中</a>
<!--#include file="conn.asp" -->
<%
rk = Request.QueryString("type")
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from [zaixianliuyan] where type='"&rk&"' ORDER BY ftime DESC"
rs.open sql,conn,1,1
%>
<style>
a.active{font-weight:bold;}
</style>
<a <%if request("type")="xiaoxue" then response.write "class="active" end if%> href="tu.asp?type=xiaoxue">小学</a> <a <%if request("type")="zhonhxue" then response.write "class="active" end if%> href="tu.asp?type=zhonhxue">中学</a> <a <%if request("type")="gaozhong" then response.write "class="active" end if%> href="tu.asp?type=gaozhong">高中</a>
全部回答
- 1楼网友:渊鱼
- 2021-04-12 10:11
用一个css样式。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯