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:
{:;:;}{:;:;:;}