When using vs2005 for Web pages, the system always prompts a warning. The attribute "border" is regarded as obsolete. We recommend that you use a newer construction method. Although there is no major problem, it is always uncomfortable.
1. Write border = "0" as follows in my statement and modify the preceding statement as follows to solve the problem.
Style = "border: 0"
2. In the <Map Name = "map" id = "map"> statement, the system prompts that the name is out of date. simply remove name = "map: <map id = "map">
3. the attribute "XXX" is regarded as obsolete. We recommend that you use a newer structure.
Cause: Due to Visual Studio ()
2005 normalization of HTML. This warning is reported when many attributes are switched from 2003 to 2005, but it is not an error. We recommend that you use more styles in 2005 to make programming more
Normalization! For example, the previous <body
Bgcolor = "# ffffff"> the "attribute 'bgcolor' is regarded as obsolete. We recommend that you use a newer structure "because bgcolor is not
The definition of XHTML. Change to <body style = "Background: #000;">!
4. For <Table align = "center"> conversion, first view the result of this sentence:
Code: <Table width = "300" border = "1" align = "center"> <tr> <TD> AAA </TD> </tr> </table>
The result of this Code is that the table is centered, and the text in the table is not in the middle. To set the file center in the cell, you also need to set <TD align = "center">, that is to say, the text in the cell is left by default.
There are many solutions. I will talk about two common methods:
1. Use <center> </center>
Code: <center> <Table width = "300" border = "1"> <tr> <TD> AAA </TD> </tr> </table> </center>
In ASP. after being parsed by net2.0, the content of cells in the entire table and table will be displayed. All cells are centered. That is to say, the text of cells is centered by default, so it is a little different from the functions to be implemented.
2. Use CSS expressions
Code:
<Style type = "text/CSS">
<! --
. Tablecenter {
Position: absolute;
Left: expression (document. Body. clientwidth-This. offsetwidth)/2 );
}
-->
</Style>
<Table width = "300" border = "1" class = "tablecenter"> <tr> <TD> AAA </TD> </tr> </table>
For example, if the <TD> label uses the width and height attributes, it is also out of date, which is easy to set, as long as <TD>
Style = "width: 100px;
Height: 60px; "> that's it. Here we note that the Unit must be written, because the unit is not required when the width and height attributes are directly set.
Now we often forget the unit. In CSS, if you do not write the unit, these settings will not work.
Others:
<Div style = "text-align: Left"> </div>
http://wangzhankaifa.blog.sohu.com/71284421.html