[英]Emmet - Can I write html so that the css structure will generate automatically?
我有一个问题。 我使用Emmet编写html。 我可以编写html以便CSS结构自动生成吗? 例如...我写这段代码:
div.wrapper>div.head>a.logo+h1{Some text}
我会得到这个:
<div class="wrapper">
<div class="head">
<a href="" class="logo"></a>
<h1>Some text</h1>
</div>
</div>
我想要这个结果:
<div class="wrapper">
<div class="head">
<a href="" class="logo"></a>
<h1>Some text</h1>
</div>
</div>
<style>
.wrapper {}
.wrapper .head {}
.wrapper .head a.logo {}
.wrapper .head a:hover.logo {}
.wrapper .head h1 {}
</style>
可能吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.