aspx页面默认会有如下两行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
以前在不规范的标准下能够实现的功能如何在标准的规范下也能实现?
这种标准需要注意些什么,有哪些标签或css不同或有改动?
比如以下问题,若去掉
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
就正常。但不规范。如何改?类似这样的问题一定有很多,有哪些标签或css不一样了?
文件内容如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<title> </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<style type= "text/css ">
<!--
.TableFillTD
{
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
}
-->
</style>
<body leftmargin= "0 " topmargin= "0 " marginwidth= "0 " marginheight= "0 ">
<table width= "327 " border= "0 " align= "center " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td width= "98 " height= "73 " valign= "middle "> <img src= "http://www.csdn.net/Images/logo_csdn.gif " width= "152 " height= "500 "> </td>
<td width= "97 " bgcolor= "#999999 "> <table width= "100% " border= "0 " cellpadding= "0 " cellspacing= "0 " class= "TableFillTD ">
<tr>
<td bgcolor= "#FF0000 "> </td>
</tr>
<tr>
<td bgcolor= "#00FF00 "> </td>
</tr>
<tr>
<td bgcolor= "#000066 "> </td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
------解决方案--------------------------------------------------------
这个 得看
http://www.w3.org/的解释了