16
2018
04

css当前页面效果

/*关于我们*/

.x_about{ width:1148px; min-width:1148px; margin:0px auto; border:1px solid #CCC; background:#ffb000; overflow:hidden}

.x_about .box1{ float:left; width:960px; padding:15px; height:auto; background:#FFF; border-right:1px solid #CCC; min-height:300px;}

.x_about .box1 .box1bt{ width:100%; height:30px; border-bottom:1px solid #CCC; margin-bottom:25px;}

.x_about .box2{ float:right; width:157px; height:auto;}

.x_about .box2 .about_menu{width:157px;}

.x_about .box2 .about_menu li{ height:35px; font-size:16px; border-bottom:1px solid #e09b01;   text-align:center}

.x_about .box2 .about_menu li a{ color:#FFF; line-height:35px;display:block;}

.x_about .box2 .about_menu li A:hover{ color:#FFF; background:#e09b01; text-decoration:none;  }

.x_about .box2 .about_menu li.active{ color:#FFF; background:#e09b01;}

<ul class="about_menu">

        <%

这里是读库

Do While Not rslm.EOF

%>

<li <%if cstr(Request("id"))=cstr(rslm("id")) then css = "active" else css="" end if%> class="<%=css%>"><a href="a<%=rslm("id")%>.html"><%=rslm("title")%></a></li>

<%

rslm.movenext

Loop

rslm.close

set rslm=nothing

%>

        </ul>


« 上一篇下一篇 »