-
Notifications
You must be signed in to change notification settings - Fork 498
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
使用 style插件使用问题 #326
Comments
但是我又发现 如果把样式写在 |
style 插件用于解析和匹配传入 <mp-html content="<style>.aa{color:red}</style><div class='aa'>123</div>" /> 如果是固定的内容可以写在 npm install
npm run build:uni-app 最后拷贝 |
如果我写在externStyle,是直接写 |
不需要加 |
好的,谢谢回复 |
|
您好,tools/config.js 的 externStyle 字段里,例子: externStyle: '.aaa_bbb{ color: red;}' 构建完成后下划线后面的bbb会被过滤掉,变成了.aaa_{color:red},这样正常吗? |
不正常,我修复一下 |
文档中这个style的使用方式,查阅文档暂未找到可行的使用方式

问题描述
就是我在使用这个style标签的时候,,我返回的富文本值就包含这些class或者id,比如以下类型
<span class="aa">Hello </span><span id="bb">world!</span>
那么我想对class为aa的或者id为bb的单独设置样式,这个style样式需要写在哪里呢,我在uni-app问答社区有回复,告知写在externStyle或者mp-html/node/node.vue,但是这个如果写在externStyle这个有参考模版之类的吗,我尝试很多个写法都不行,在nvue情况下
The text was updated successfully, but these errors were encountered: