When using a 36px bold font on a page, why does the text appear thick and thin?_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:20:00
Original
1870 people have browsed it



As shown in the picture, Shi, Huan, Xie, etc. are all thin, and the others are thick.

The CSS settings of the text are as follows:
#header .title{
width:100%;
padding-top:80px;


padding-left:100px;

color:#1d4f5a;
font-size:32px;
font-weight:normal;

text-align:left;

border: 0px solid #000000;
}

May I ask why this is? How to modify?


Reply to the discussion (solution)

This is not a css problem at all, but a font problem on your computer. Try changing the font

This is not a CSS problem at all, but a font problem on your computer. Try changing the font

However, the fonts in the NetEase blog I referenced are not thick and thin.

Put Change the font settings in the body to the following:
font:normal 12px/1.8em Arial, Helvetica, sans-serif;

But the problem remains.

#header .title{width:100%;padding-top:80px;padding-left:100px;color:#1d4f5a;font:normal 12px/1.8em Arial, Helvetica, sans-serif!important;text-align:left;border: 0px solid #000000; }
Copy after login


Or just give the URL and see what the problem is.

#header .title{
width:100%;
padding-top:80px;


padding-left:100px;

color:#1d4f5a;
font-size:32px;
font-weight:bold;
font-family:SimSun;

text-align:left;

border: 0px solid #000000;
}

This is OK, it seems that the reason is that the previous font did not support Chinese well.
Originally it was font-family: "宋体" .

Quoting the reply from dongjunhui2010 on the 1st floor:
This is not a css problem at all, it is a font problem in your computer. Try changing the font

However, the NetEase blog I referred to There are no thick and thin fonts in the middle.

Change the font settings in the body to the following:
font:normal 12px/1.8em Arial, Helvetica, sans-serif;

Yes The problem remains.
Obviously there are not those fonts in the font, and the default Song Dynasty has been used instead

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