asp中鼠标放上时字体变色,离开后还原
<divstyle="width:262px;height:276px;margin-top:10px;;border:2px#C7D8E7solid;"><divsty...
<div style="width:262px; height:276px; margin-top:10px; ; border:2px #C7D8E7 solid;"><div style="width:262px; height:20px; border-bottom:1px #EFEFEF solid; background-color:#F0F7FE;"><table width="262px"><tr><td style="font-size:14px; color:#0066FF"><img src="pic/sj.gif" /><span class="rm_font"><strong>热门路线</strong></span><%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select * from [jingdian] where type='推荐景点'"
rs_news.open sqltext4,conn,1,1
%></td>
<td align="right"><img src="pic/gengduo1.gif" /></td>
</tr></table></div><%i=0
do while not rs_news.eof%>
<table width="257px" height="20px">
<tr>
<td><img src="pic/3.gif" /></td>
<td><a href="wenzhang.asp?id=<%=rs_news("id")%>"><span class="lianjie_zitiyanse" onmousemove="this.color='blue'"><%=cutstr(rs_news("names"),8)%></span></a></td>
<td>¥<%=rs_news("price")%></td>
</tr>
</table>
<%rs_news.movenext
i=i+1
loop
rs_news.close %></div>
循环输出的字体,在鼠标放上后变成#999999,离开后#666666
谢谢了! 展开
set rs_news=server.createobject("adodb.recordset")
sqltext4="select * from [jingdian] where type='推荐景点'"
rs_news.open sqltext4,conn,1,1
%></td>
<td align="right"><img src="pic/gengduo1.gif" /></td>
</tr></table></div><%i=0
do while not rs_news.eof%>
<table width="257px" height="20px">
<tr>
<td><img src="pic/3.gif" /></td>
<td><a href="wenzhang.asp?id=<%=rs_news("id")%>"><span class="lianjie_zitiyanse" onmousemove="this.color='blue'"><%=cutstr(rs_news("names"),8)%></span></a></td>
<td>¥<%=rs_news("price")%></td>
</tr>
</table>
<%rs_news.movenext
i=i+1
loop
rs_news.close %></div>
循环输出的字体,在鼠标放上后变成#999999,离开后#666666
谢谢了! 展开
展开全部
定义a标签的样式就可以了
a:link {
color: 666666;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: 666666;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
color: 999999;
}
a:link {
color: 666666;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: 666666;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
color: 999999;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<style type="text/css">
<!--
a {
color:#666666;
}
a:hover {
color:#999999;
}
-->
</style>
把这段代码放在<head></head>里面
<!--
a {
color:#666666;
}
a:hover {
color:#999999;
}
-->
</style>
把这段代码放在<head></head>里面
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询