Common Browser private attributes

Source: Internet
Author: User

1. Optional values of control elements

Selector {-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none ;}

Optional values:

  • Auto -- default value. You can select the content in the element.
  • None -- the user cannot select any content in the element
  • Text-you can select text in the element
  • Element -- optional text, but only within the boundary of the element (only supported by IE and FF)
  • All -- in the editor, if double-click or context-based click occurs on the child element, the highest level ancestor element of the modified value will be selected.
  • -Moz-none -- firefox private. The text of the element and child element is not optional, but the child element can be reset back to the optional through text.
2. Set the placeholder style of the input element.

Global settings:

:-Webkit-input-placeholder {font-size: 12px; color: # fff; }::-moz-placeholder {font-size: 12px; color: # fff ;}

Specific element settings:

{:;:;}{:;:;:;}

 

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.