在vue 項(xiàng)目中使用到 mint-ui的 組件 《mt-swipe》修改默認(rèn)樣式?jīng)]用,刪除<style scoped></style> 中 scoped ,scoped 是vue 單頁(yè)面樣式防止頁(yè)面污染的,顯然這樣做不是明智之舉, 后來采用 添加 /deep/? ,例如 :
/deep/.mint-swipe-indicators{
? ? ? ? /deep/.mint-swipe-indicator{
? ? ? ? ? width: 20px ;
? ? ? ? ? height: 20px ;
? ? ? ? ? border-radius: 50% ;
? ? ? ? }
? ? ? }
? ? }
網(wǎng)上說添加 >>> 這個(gè)符號(hào)也是可以的,但是我試了一下,會(huì)報(bào)錯(cuò)!可能是我的問題 !