Bootstrap learning using CSS properties pointer-events disabling form controls

Source: Internet
Author: User

Reference Links:

Application example and extension of CSS3 Pointer-events:none

First of all, the application of pointer-events in the removal of SVG has only two values:AUTO | NONE

Pointer-events:none

This property allows the element that applies this property to become "vacuum", for example: A connection is covered with a div, and when the attribute is in the CSS property of the Div, the div is as if it does not exist, and can be clicked directly below the a tag.

This is a very magical property, Bootstrap is to use this property, to implement the effect of disabling the control.

There are two ways to implement a disable effect in bootstrap:

Method 1: Add the disabled attribute to the label

Method 2: Add the class name "disabled" to the element tag

The main differences between the two are:

{pointer-events: none; cursor: not-allowed; filter: Alpha (opacity=65);   -webkit-box-shadow: none; Box-shadow: none; opacity: .

Bootstrap learning using CSS properties pointer-events disabling form controls

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.