当前位置: 代码迷 >> ASP >> 为什么小弟我这段代码没有效果
  详细解决方案

为什么小弟我这段代码没有效果

热度:78   发布时间:2012-02-24 16:30:38.0
为什么我这段代码没有效果?
................

dim   c_date

if   rs( "tq_date ")   =   date()   then     <===这段。。我想要数据库的时间=今天字体就显示红色
c_date   =   "red "
else
c_date   =   "#0033cc "
end   if
...............
<td> <font   color= <%=c_date%> > <%=rs( "tq_date ")%> </font> </td>

看看我的代码是不时哪里写错了??



------解决方案--------------------
if date(rs( "tq_date ")) = date() then
  相关解决方案