简体   繁体   English

css-in-js 是否有完整的样式语法参考?

[英]Is there a complete style syntax reference for css-in-js?

I'm learning CSS at the same time as css-in-js (as part of learning React), and lots of the guides I've found already assume complete knowledge of CSS - they don't teach you css-in-js as a styling solution from the ground up (eg the style syntax on the JSS site.)我正在学习 CSS 和 css-in-js(作为学习 React 的一部分),而且我发现的许多指南已经假设完全了解 CSS - 他们不会教你 css-in-js作为从头开始的样式解决方案(例如,JSS 站点上的样式语法。)

Is there a complete, ground-up syntax API guide for css-in-js anywhere?是否有完整的基础语法 API 指南用于 css-in-js 任何地方?

Before you start doing css-in-js you should really learn basics of CSS syntax first.在开始使用 css-in-js 之前,您应该首先学习 CSS 语法的基础知识。 Later on you can always look up what a certain property does in CSS before you use it.稍后您可以在使用之前查看某个属性在 CSS 中的作用。 CSS is, in general, a big spec, so no cssinjs library will have a full guide for CSS and it doesn't make sense, libs document things that are specific to them. CSS 通常是一个大规范,因此没有 cssinjs 库会提供 CSS 的完整指南,而且它没有任何意义,libs 会记录特定于它们的内容。 Everything else is just CSS.其他一切都只是 CSS。 Most of the time they just compile to CSS 1:1.大多数时候,他们只是编译为 CSS 1:1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM