DIV中如何显示双引号
我用DIV实现补充省略显示的部分,但遇到一个问题,如果内容中含双引号,就无法正确显示,请高手指点
<%
dim s= " " "abcdefghijklmn " "双引号内容 "
%>
<table>
<tr>
<td> <div text= " <%=s%> "> <%=left(s,10)& "... "%>
</div>
</td> </tr> </table>
鼠标放上显示时,没有内容,原因是 ( "abcdefghijklmn "双引号内容)这段内容是以双引号开头,该怎么办?替换了半天也没用???急
------解决方案-------------------- <%
dim s
s= " " "abcdefghijklmn " "双引号内容 "
%>
<table>
<tr>
<td> <div title= " <%=Replace(s, " " " ", "" ")%> "> <%=left(s,10)& "... "%>
</div>
</td> </tr> </table>
------解决方案-------------------- <%
dim s
s= " " "abcdefghijklmn " "双引号内容 "
%>
<table>
<tr>
<td> <div title= ' <%=Replace(s, " " " ", "" ")%> '> <%=left(s,10)& "... "%>
</div>
</td> </tr> </table>