ASP.NET2.0: please note that the CSS and js files linked to the page are in Chinese

  • 2020-05-05 11:07:06
  • OfStack

When the styles you define have Chinese in them, for example.sometyle { font - family: @ boldface; The & # 125; If it is not written correctly, as in. font - family: black body; The & # 125; ", this should be a wrong way of writing, so that not only does this style not work, but it also affects the style defined after it. I wonder whether the parsing of css is the same rule or ASP.NET 2.0.

When you add the js file directly from the download web to the VS2005 project, if the file has Chinese in it, when you call its method, the js error will appear that the object cannot be found, just like you do not have a chain like this file. You need to create a new js file in your project, then put the code copy from your down down into the new file, and then use the new file. This should be a file encoding problem.

In addition, ASP.NET2.0 USES the XHTML 1.0 standard, while the previous 1.x was HTML 4.0, which can be seen from the headers of the HTML source files

< !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, the definition of elements is to conform to XHTML 1.0 specification, such as length should be added units, such as width:100px; width:100 does not work.


Related articles: