首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

怎么显示带空格的字符串

2012-01-15 
如何显示带空格的字符串?strTitle helloworld inputname description type text size 80 max

如何显示带空格的字符串?
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了

热点排行
Bad Request.