Make Google Chrome support fonts smaller than 12px

Source: Internet
Author: User
Private attributes of WebKit: {-WebKit-text-size-adjust: none;} but, in the latest version of Google. This attribute is no longer supported. Use the transform: Scale () of css3 to zoom in and out, but the zoom width will not change. Therefore, an extra span tag is added, and another style dedicated to chrome @ media screen and (-WebKit-Min-device-pixel-ratio: 0) {} is used. In addition: firefox @-moz-document URL-prefix () {}# nav {width: 100%; Height: 34px; Background-color: #000 ;} # nav ul {}# nav ul Li {float: Left; margin-Right: 3px ;}# nav ul Li a {float: Left; font-size: 11px; display: block; Height: 34px; line-Height: 34px; color: # FFF; text-transform: uppercase;} # nav ul Li A: hover, # nav ul Li. selected {background-color: #313131; text-Decoration: none;} # nav ul Li a span {padding: 0px 22px; display: block ;} @ media screen and (-WebKit-Min-device-pixel-ratio: 0) {# nav ul Li a span {padding: 0px 15px;-WebKit-transform: scale (0.916);-o-transform: Scale (1 );}} <Div id = "nav"> <Div class = "pagewraper"> <ul id = "top_menu"> <li> <a href = "index. PHP "> <span> Home </span> </a> </LI> <li> <a href =" Company. PHP "> <span> company </span> </a> </LI> <li> <a href =" machinery. aspx "> <span> machinery parts </span> </a> </LI> <li> <a href =" rigging. aspx "> <span> rigging hardware </span> </a> </LI> <li> <a href =" heat. aspx "> <span> heat exchanger </span> </a> </LI> <li> <a href =" QA. PHP "> <span> Quality Assurance </span> </a> </LI> <li> <a href =" qualification. PHP "> <span> qualification </span> </a> </LI> <li> <a href =" contact. PHP "> <span> Contact Us </span> </a> </LI> </ul> </div>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.