`
newleague
  • 浏览: 1492375 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类

20101019

阅读更多

1、div居中

<div style="margin:auto;"/>

 

注意在头部增加<xhtml> 文档定义

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">

2、ajax调用,返回的xml数据里包含有特殊字符"&",出现在页面不能显示该条数据。

解决:需要转义

org.apache.commons.lang.StringEscapeUtils.escapeHtml("包含有特殊字符的数据")

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics