diff --git a/src/component/switch/index.less b/src/component/switch/index.less index 8605b043..c58beeab 100644 --- a/src/component/switch/index.less +++ b/src/component/switch/index.less @@ -16,6 +16,9 @@ .layui-form-switch span { position: absolute; + display: flex; + align-items: center; + justify-content: center; left: 5px; top: 3px; width: 16px;