Why is the background color not the default color when some websites select text or other content by dragging the mouse? How to customize it? -

Source: Internet
Author: User
Iapps.geekpark.net. Is it related to HTML5? Http://iapps.geekpark.net /#
For example. Is it related to HTML5? Reply content: Right-click to view the source code, line 28: http://iapps.geekpark.net/html_page/css/style.css? V = 2
Style.css, line 134 :::-moz-selection { Background: # FF5E99;Color: # fff; text-shadow: none; }:: selection { Background: # FF5E99;Color: # fff; text-shadow: none ;}
  1. This is a property of CSS3.
  2. Currently, not all browsers support this attribute (IE9 or above in the IE series, whereas non-IE browsers that support CSS3 support this attribute. For details about the support for this attribute, please search for the support for CSS3 by various browsers ).
  3. Different browsers are written differently. For example, "-moz-selection" is a special method for mozilla.
Css control is not available. The display effect depends on the browser kernel. It is the effect setting of CSS3css.

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.