Fix Warning “Also define the standard property 'box-shadow' for compatibility”

自古美人都是妖i 提交于 2020-06-17 04:31:49

问题


I use MDB scroll library , and VSCode show warnings :

Also define the standard property 'box-shadow' for compatibility

How fix it? Or how ignore the warning on VSCode?

  .scrollbar-black::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #000;
  }

回答1:


.scrollbar-black::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #000;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); // <- Add this to fix.    
}


来源:https://stackoverflow.com/questions/55586658/fix-warning-also-define-the-standard-property-box-shadow-for-compatibility

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!