-
Notifications
You must be signed in to change notification settings - Fork 19
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
ie8下的style插值 #10
Comments
是否 r-style 和 style插值表达式同时声明了? @chengmeng1117 如果有问题那就是Bug, 理论都是可以的 |
没有同时声明,不过我好像找到问题所在原因了,在用r-style插值的时候,属性值我使用了对象的原因
|
又理了一下,以下几种r-style插值写法,会影响ie8的样式渲染
总结: 兼容ie8的写法很严格,下面这两种都可以,但有些注意点
ie8的坑踩得好累,总结的不正确的地方还望指正 |
r-style插值在ie8下好像不兼容
r-style={{height: logoHeight+'px'}}
第二种尝试:用style来进行插值,将样式拼接成字符串插入到style属性下
style={slogoHeight}
但是好像只能识别一个样式,比如
slogoHeight="height:120px"
如果像这样添加多个样式,
slogoHeight="height:120px;line-height:120px;"
效果就是一个都没有添加上...
第三种尝试:用style进行插值
slogoHeight=120px
style="height:{slogoHeight}; line-height:{slogoHeight}"
ie8下正常
想知道ie8下的样式插值,只有这一种解决方式么
The text was updated successfully, but these errors were encountered: