button disabled属性样式问题

  ## 使用选择器:disabled
  button:disabled {
      pointer-events: none;
      cursor: not-allowed;
      filter: alpha(opacity=65);
      -webkit-box-shadow: none;
      box-shadow: none;
      opacity: .65;    
}
 ## 使用选择器[disabled]
 button[disabled] {
      pointer-events: none;
      cursor: not-allowed;
      filter: alpha(opacity=65);
      -webkit-box-shadow: none;
      box-shadow: none;
      opacity: .65;    
}

 

你可能感兴趣的:(css,html-dom)