📜  材料设计精简版-复选框

📅  最后修改于: 2020-10-22 05:55:17             🧑  作者: Mango


MDL提供了一系列CSS类,以应用各种预定义的视觉和行为增强功能并显示不同类型的复选框。下表列出了可用的类及其效果。

Sr.No. Class Name & Description
1

mdl-checkbox

Identifies label as an MDL component and is required on label element.

2

mdl-js-checkbox

Sets basic MDL behavior to label and is required on label element.

3

mdl-checkbox__input

Sets basic MDL behavior to checkbox and is required on input element (checkbox).

4

mdl-checkbox__label

Sets basic MDL behavior to caption and is required on span element (caption).

5

mdl-js-ripple-effect

Sets ripple click effect and is optional; goes on the label element and not on the input element (checkbox).

下面的示例将帮助您理解使用mdl-slider类来显示不同类型的复选框。

mdl_checkboxes.htm


      
            
      
      
   
   
   
      
Default CheckBoxCheckBox with Ripple Effect Disabled CheckBox

结果

验证结果。