CSS and Google

Source: Internet
Author: User

In the eyes of a CSS attacker, I am afraid the IE series is compatible.The worst browser, especiallyIE6. However, I found that Google's Chrome browser is also difficult to solve, but it is a small detail. I don't know if you have ever encountered it.

1. fonts below 12 PX are not supported by default. I don't know what Google's nerves are. If you set the font-size: 10px somewhere, chrome won't change, or 12px.

Solution:

 
1 . Content{-WebKit-text-size-adjust:None;}/*Add the following to the small text style:*/

2. placeholder text color. Placeholder is a new attribute of html5. it is used for text box prompts, instead of using value + script. If your prompt text needs to change the font color, chrome must add another sentence to achieve it, as shown below:Code:

1 . Input_text{Color:# Fff;}2 . Input_text:-WebKit-input-placeholder{Color:# Fff;}/*Add another sentence to chrome.*/

Author: front-end group

Related Article

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.