数据库读取的数据超链接加title属性-链接文本为显示空
问题代码:
<a title= " <%=rs1( "title ")%> " href= "viewnews.asp?id= <%=rs1( "id ")%> &class= <%=rs1( "class ")%> "> <%=rs1( "title ")%> </a>
链接正常显示:
<a href= "viewnews.asp?id= <%=rs1( "id ")%> &class= <%=rs1( "class ")%> "> <%=rs1( "title ")%> </a>
正常显示:
<a title= " <%=rs1( "class ")%> " href= "viewnews.asp?id= <%=rs1( "id ")%> &class= <%=rs1( "class ")%> "> <%=rs1( "class ")%> </a>
问题:
为什么当title属性改为 <%=rs1( "title ")%> 时,链接内容 <%=rs1( "title ")%> 为空。
------解决方案--------------------是不是你的title含HTML标记了
------解决方案--------------------应该是你在哪里代码写错了