对于我这个前端痴来说,这是个很大的问题。终于。。。
以下代码摘自我的课程设计。
out.print("<table align=center border=2>"); ???????????????????????out.print("<tr>"); ???????????????????????????out.print("<th width=100>" + "读者姓名"); ???????????????????????????out.print("<th width=100>" + "身份证号"); ???????????????????????????out.print("<th width=100>" + "电话号码"); ???????????????????????????out.print("<th width=100>" + "读者类别"); ???????????????????out.print("</tr>");
为啥缩进变了呢?
<center> ???????????????<% ???????????????????out.println("此读者不存在!!!"); ???????????????%> ???????????????</center>
真是个悲伤的故事。。。
看看效果。。。
居中之前真是逼死强迫症啊。
html居中问题
原文地址:http://www.cnblogs.com/AbsolutelyPerfect/p/7816104.html