html - <div.main> </div.main> - 语法

标签 html css reactjs react-native sass

我在哪里见过这个,但不记得在哪里:

<div.main> 
   // ....
</div.main> 
<div.secondary>
  // ....
</div.secondary>

谁能给我解释一下这个语法叫什么,它的一般用途是什么?

最佳答案

您可能已经在一些带有一些插件的编辑器中看到它,例如 emmet( https://emmet.io/ ) 或 zen coding( https://code.google.com/archive/p/zen-coding/ )。这些插件有助于以更快的方式编写 html 代码。

关于html - <div.main> </div.main> - 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56021437/

相关文章:

javascript - 无法将表单数据推送到 JSON 文件中

javascript - jquery:切换一个div的 child

Javascript:比较由 javascript 设置的 backgroundColor

javascript - 更新特征数组的特定对象

reactjs - 通过父级更新另一个子级的状态

html - 图像在 iPhone 4 中不显示

javascript - 在 IE 中不触发子内部按钮上的单击事件

css - 如果多背景,背景简写不起作用

jquery - 通过 CSS 属性设置元素属性,这可能吗?

css - 如何在 Material UI 中使背景图像响应