要让表格在网页的正中央显示,可以用表格嵌套的方法
<table  height="100%" width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td valign="middle">
<table width="600" height="380" border="0" cellpadding="0" cellspacing="0"
background="<%=request.getContextPath()%>/js/lib/icon/background.gif" align="center">

这样写之后表格仍然在页面顶部的中央,我感到很奇怪
后来发现是页面声明的问题
原来是这样的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
后来改成
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
就OK了
 


Comments

10/21/2010 1:04pm

The unbelievers will say they are but words, but a slogan, but a flamboyant phrase. So funny.

Reply



Leave a Reply