日期:2014-05-18  浏览次数:20691 次

如何显示带空格的字符串?
strTitle= "hello   world "
<input   name= "description "   type= "text "   size= "80 "   maxlength= "256 "   value= <%=strTitle%>   />
显示出来的只有 "hello "
请问怎样解码才能显示完整的字符串

------解决方案--------------------
<input name= "description " type= "text " size= "80 " maxlength= "256 " value= " <%=strTitle%> " />

------解决方案--------------------
<input name= "description " type= "text " size= "80 " maxlength= "256 " value= " <%=strTitle%> " />
在值的两边加上双引号就可以了.
------解决方案--------------------
呵呵,只要在两边加上引号就OK了