Google does not support the ultimate solution for fonts smaller than 12px, google12px
Every browser manufacturer has its own design subjectivity, and these starting points seem good but often hurt programmers deeply.
1. Requirements
The rendering is specified as a Google browser and the font size is 6-8 PX (to print small sizes ).
2. Explore 2.1 CSS HACK
Multiple web pages searched for N point to one result:
Html
{ -webkit-text-size-adjust:none;}
Put the above Code at the beginning of the document...
Yes, that is, it does not take effect... The result is a series of reactions, such as rough tone, blushing, and wide-eyed.
2.2 spring of CSS 3
I just brought a book about the characteristics of CSS3. I quickly browsed the entire book and found a feature:
div { transform:scaleY(0.8);}
--Scale the specified tag. For example, the code above means that the height (Y) of the div and its child elements (including text and font size) is reduced to 80%.
Similarly, scale down the width: scaleX (Pre), Overall scale-down (Pre).
Try to scale down.
However, if HTML is like this:
<div id="d1">your text</div><div id="d2">your text2</div>
So there will be a lot of white space between d1 and d2. How can I leave this white space?
Two rules:
{ margin-top:-12px; padding-bottom:-12px;}
Using the negative value of marin, you can move the margin to the specified direction, that is, the entire element;
Using the negative value of padding, you can move the padding to the specified direction, that is, supporting the big dollar margin;
After that, the reduced text does not change, so it achieves the effect-scale down the font in the Google browser and perform the same operations as normal.
3. Summary
Transform is actually an implementation of computer graphics, such as 2D transformation and 3D transformation.
The Foundation is very important, and every effort will not be wasted ~.
Google does not support fonts smaller than 12px in css settings. What can I do to solve this problem?
Why not? I tried this. Yes.
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "www.w3.org/..al.dtd">
<Html xmlns = "www.w3.org/5o/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> untitled document </title>
<Style type = "text/css">
Html, body {-webkit-text-size-adjust: none; font-size: 10px ;}
</Style>
</Head>
<Body>
<P> Test </p>
</Body>
</Html>
Google Chrome is not compatible with fonts smaller than 12px. How can this problem be solved during webpage creation?
Google kernel is not compatible with some web pages; it is best to use IE when making web pages; you use Google I guess it is for speed! If you are using a Windows 7 system, you can use IE10. The speed has already defeated Google. Google's kernel may have pinyin underscores when typing, so IE does not. This indicates that IE is compatible, for the XP system, you can use a 360-speed browser and a dual-core switch. You can switch the web page to an IE core. For the Vista system, you can use IE9, which is fast and compatible, web pages are also good.