Skip to content
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

样式冲突 #267

Open
JQiue opened this issue Aug 12, 2023 · 0 comments
Open

样式冲突 #267

JQiue opened this issue Aug 12, 2023 · 0 comments

Comments

@JQiue
Copy link

JQiue commented Aug 12, 2023

当小程序开启styleIsolation: "shared"选项时,towxml 的标签选择器样式会影响该组件的样式,建议使用别的选择器替代,以免发生样式冲突

如下:

/**内置元素**/
image,video {
    max-width: 100%;
}


video {
    width:100%; margin: 10rpx auto;
}

image {
    height:auto; vertical-align:middle;
}

video {
    height:220px; font-size:0;
}
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