ASP中如何修改子标签的样式

ASP中如何修改子标签的样式,第1张

修改后的代码如下:
<table>
<tr>
<Td bgcolor=#BECDD2 colspan="2" onmouseover="thisstylebackground='url({%picurl%}/hoverjpg) no-repeat';thischildNodes[0]stylecolor='black';" onmouseout="thisstylebackground='#BECDD2 none';thischildNodes[0]stylecolor='red';">
<h1 style="color:red">最新推荐</h1>
</Td></tr>
</table>

在循环中加入
if rs("id")=request("id") then
<li class="on"><a href="customaspid=<%=rs("ID")%>"><%=rs("pf_custom_name")%></a></li>
else
<LI><a href="customaspid=<%=rs("ID")%>"><%=rs("pf_custom_name")%></a></LI>
end if

一个页面可以引入多个css的
比如说
<link rel="stylesheet" href="__PUBLIC__/home/css/indexcss">
<link rel="stylesheet" href="__PUBLIC__/home/css/stylecss">
你要写页面内的样式可以在页面内写成这样
<style type="text/css">
body{background: #000; color: #fff;}
#div1,#div2,#div3{width: 800px; height: 800px; background: white; margin: 0 auto;}
</style>
有多个样式可以用id,class等等比如说
g_hotmap_layout,g_search_layout{width:100%; margin:0 auto;}
g_hotmap_layout{background:#f0f0f0; }
g_hot_map{padding-top:30px;}
g_new_map{ padding-bottom:40px; }
#logo{width:120px;height:40px;;}
等等
我这里还有学习的视频供你参考,转到自己百度网盘里,容易被屏蔽掉


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/13079445.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-30
下一篇 2023-05-30

发表评论

登录后才能评论

评论列表(0条)

保存