element tab選中時會有邊框

解決辦法:在commos.scss中加入屬性覆蓋

.theme{
    .el-tabs__item:focus.is-active.is-focus:not(:active) {
         box-shadow: none;
   }
 }

或者:這裏的一定要加上!Important ,因爲npm run build 打包代碼的時候的,這段代碼會被的element ui 框架代碼覆蓋掉

.el-tabs__item:focus.is-active.is-focus:not(:active) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
  }

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章