utf-8 cannot display fonts in css_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:30
Original
940 people have browsed it

I downloaded a web page template from the Internet, it comes with CSS, now only the problematic part is cut out

.CPanel{ padding:5px; font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif;}
Copy after login

The original web page is in gb2312 format, the key code is as follows:

but changed to
After that, other styles can be displayed normally, except that the font displayed is not Arial, but the default Song Dynasty (estimated based on the font shape).
May I ask what is going on? How should I modify it so that the previous font style can be displayed normally after changing to utf-8 format.
PS: After changing to utf-8, if you change to other fonts, the default Song style will still be displayed (estimated based on the font shape).
Please help me, thank you very much


Reply to the discussion (solution)

If it is a separate css file, please put the css Open the file with Notepad and save it as UTF-8 format

If it is a separate CSS file, please open the CSS file with Notepad and save it as UTF-8 format


Already tried it, but it still doesn't work. And I just tested it again. It seems that not only the fonts, but also some other styles have changed, but only part of them have changed, which is strange.

I have tried all the above methods, but it doesn’t work. I have added @charset "utf-8" before the CSS;

You can send your css and page code to amxh@21cn.com Let me see

Can you give me a URL so that I can help you analyze the reason?

Try transcoding the html page (using an editor or dw)

I haven’t watched it for a long time, haha. Later I discovered that some of the CSS styles made by my colleagues had grammatical errors, which caused the subsequent CSS to be unrecognizable

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