When there is Chinese in the defined style, such as .sometyle {font-family:@黑体;}, if it is written incorrectly, such as .sometyle {font-family: 黑体;}, this should be a wrong way of writing, so not only this The style does not work, and it will also affect the style defined behind it. I don’t know if this is the rule for parsing css, or if it is a problem with ASP.NET 2.0.
When you directly add the js file downloaded from the Internet to the VS2005 project, if the file contains Chinese characters, when you call its method, a js error of object not found will appear, as if you do not have the link. Files are the same. You need to create a new js file in the project, then copy the code in the file you downloaded into the new file, and then use the new file. This problem should be a file encoding problem.
In addition, ASP.NET2.0 adopts the XHTML 1.0 standard, while the previous 1.x was HTML 4.0. It can be seen from the headers of the HTML source files of both
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Therefore, defining elements must comply with the XHTML 1.0 specification. For example, the length must be added in units, such as width:100px; width:100 does not work.