When compiling html5, debugging finds that scripts such as php and other web pages are invalid, such as js and css.

Source: Internet
Author: User

Comments: After simple debugging and use with PHP during html5 compilation, it is found that js and css will fail in many cases. After debugging, it is found that the webpage is still cached during redirection, it is necessary to point out the relationship between the original webpage and the webpage after the jump. The specific code is as follows: after simple debugging during html5 compilation, in many cases, js, css, and so on will become invalid. The page display is abnormal, but not in the past when it was not html5. After reading all kinds of information, after debugging, we found that the webpage is still cached when it is redirected. We need to point out the relationship between the original webpage and the webpage after the jump. Therefore, in the Code:

1. You need to add a target in the form element to jump to form, for example:

The Code is as follows:
<Form action = "say_submit.php" method = "post" target = "_ blank">

2. You need to specify the rel IN a to jump through the hyperlink:

The Code is as follows:
<A href = "data. php" rel = "external" data-icon = "grid"> Settings </a>

Related Article

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.