摘要: html元素 水平居中 于 其父级元素的方法:方法1:左右居中方法1html,body,div{ margin:0; padding:0; height:100%; position:relative;}.wrap{ width:400px; height:300px; margin:10px; b... 阅读全文
posted @ 2014-02-19 13:41 snow_finland 阅读(152) 评论(0) 推荐(0)
摘要: json_encode对中文的处理一直是有问题的,1.不能处理GB编码,所有的GB编码都会替换成空字符.2.utf8编码的中文被编码成unicode编码,相当于javascript的escape函数处理的结果.为了能正确使用json,方法一:将数据转成JSON之后,将unicode编码的中文替换成u... 阅读全文
posted @ 2014-02-19 11:28 snow_finland 阅读(268) 评论(0) 推荐(0)