Home > Web Front-end > HTML Tutorial > (CSDN help) HTML can be opened directly, but cannot be opened in the website_html/css_WEB-ITnose

(CSDN help) HTML can be opened directly, but cannot be opened in the website_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:48
Original
1325 people have browsed it

HTML

HTML document can be opened directly to see the effect, but the effect cannot be seen on the website. why is that.

Reply to discussion (solution)

Static html that can be viewed locally cannot be opened when uploaded to the Internet? How is it possible?

Look at the imported js and css. Is the path correct?

It’s not that it can’t be opened, but the effect on the page is not reflected.

The page uses jquery, what are the conditions for jquery?

The page uses jquery, what are the conditions for jquery? As long as jquery.js is successfully loaded, if ui is used, theme styles and pictures are also required.

You open it with firefox, and then you can see the content to be loaded in the development tools, and those that are not loaded successfully.

Weird, it works in Firefox by entering the URL. http://127.0.0.1/index.html

This is OK, but in 360, IE, and Sogou, the running effect cannot be seen. What's going on?

Is the css.js you wrote not compatible with IE? Which IE do you use?

I am using IE6

Right-click the file and directly select 360 to open it, and you can also see the over-the-line effect.

I'm dizzy now and don't know where to look for the cause.

As long as IE and Chrome are connected, it will be fine. A few ordinary netizens use Firefox. Most of the various domestic browsers have a shell for IE. Large companies use the WebKit kernel

It just doesn’t work properly under IE,

Congratulations! You've been stabbed.
There are the following situations:
1. Your version of jquery is too old. Go to the official website and download the latest version, and it will display normally. This just happened to me. It took me an afternoon to find out the reason.
2. It means that the code you wrote is incompatible. Use css hack method. ie6 is the most difficult to be compatible with. IE6 has a double margin bug. That is, margin-left:xx and float:left; appear together with double margin values. It’s normal for the layout to be messy.
Both ie7 ie8 and firefox 360 have different compatibility issues. You'd better write css hack method.

Sorry, I entered the wrong room, it’s so white in here

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template