CSS3 跨浏览器兼容性的 SASS 插件?
是否有一个 SASS 扩展可以采用 SASS 样式表,查找中性属性(例如 border-radius
)并为其输出所有特定于供应商的属性(例如 -webkit-border-radius
) > 等)自动?
我真的不想手动创建所有 mixins 也不想手动编写代码。我确信一定有这样的扩展,但我找不到它。帮助?
Is there a SASS extension that would take SASS stylesheets, find neutral properties (e.g. border-radius
) and output all vendor-specific properties for it (e.g. -webkit-border-radius
etc) automatically?
I don't really want to create all the mixins manually nor write the code manually. I'm sure there must be such an extension, but I can't find it. Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个非常好的宝石可以满足您的需求。它被称为 Bourbon
它不会用供应商特定的 CSS 替换您的 CSS,因为它的工作方式与 SASS 的工作原理相同工作。
它基本上是一个 mixin 集合,可以正确生成跨浏览器 css。
There is a very nice gem that would fit your needs. It's called Bourbon
It will not replace your css with the vendor-specific one as it works as SASS is made to work.
It is basically a mixin collection that generates the cross-browser css properly.
指南针 有一个 CSS3 模块 处理很多这样的事情。
Compass has a CSS3 module that handles a lot of that stuff.