编写html5时调试发现脚本php等网页js、css等失效_html5教程技巧

WBOY
Release: 2016-05-16 15:48:38
Original
1792 people have browsed it

最近在编写html5时简单的调试了下与PHP协同使用后,发现在不少情况下js、css等会失效,页面显示异常,而在以前非html5时并没有。后经过查阅各类资料,调试后发现:网页在跳转时仍有缓存,需要指出原网页和跳转后网页的关系,故,在代码中:

1.利用表单form跳转的需要在form元素里面添加target,如:

复制代码
代码如下:



2.利用a超链接跳转的需要在a里面指定rel即可:

复制代码
代码如下:
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!