asp.net2.0: Page in the link to CSS, js file with Chinese need attention _ practical skills

Source: Internet
Author: User

When you have Chinese in the defined style, such as. sometyle {font-family:@ bold; If you write incorrectly, as in. Sometyle {font-family: bold;}, this should be the wrong way of writing, so that not only does this style not work, But also affect the definition behind it's style works, do not know the CSS parsing is the rule, or ASP.net 2.0 of the problem.

When you directly from the online download down the JS file into the VS2005 project, if this file with Chinese, when you call its method, you will be unable to find the object of the JS error, as you do not have the chain as the file. You need to create a new JS file in your project, and then copy the code from your down file into the new file, and then use the new file. This problem should be the problem of file encoding.

In addition, ASP.NET2.0 uses the XHTML 1.0 standard, and the previous 1.x is HTML 4.0, which can be seen from both the HTML source file header

<! 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" >

So the defining element is to conform to the XHTML 1.0 specification, such as the length of the unit, such as WIDTH:100PX;WIDTH:100 does not work.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.