Skip to content

样式冲突 [class*=handle-]:before #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LMGO opened this issue Apr 21, 2025 · 0 comments
Open

样式冲突 [class*=handle-]:before #426

LMGO opened this issue Apr 21, 2025 · 0 comments

Comments

@LMGO
Copy link

LMGO commented Apr 21, 2025

`

<style lang="scss"> // 此组件样式,只有全局时可生效,但存在部分问题,已知问题为:覆盖了全局的before,依赖这部分元素的点击等交互,可能会存在偏差 // @media only screen and (max-width: 768px) {[class*= handle- ]:before, 当样式中包含“handle-”时,会存在问题 @import 'vue-draggable-resizable/style.css'; </style>

`

@media only screen and (max-width: 768px) {[class*= handle- ]:before { content: ""; left: -10px; right: -10px; bottom: -10px; top: -10px; position: absolute; }

此样式容易和其他第三方库,存在冲突覆盖,引发一些异常

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant