gpt4 book ai didi

html - 少/CSS : Is it possible to wrap a class around the outside of another without HTML?

转载 作者:太空宇宙 更新时间:2023-11-03 23:39:01 27 4
gpt4 key购买 nike

如果我的 HTML 看起来像这样:

<div class="purely-aesthetic-wrapper">
<section>

</section>
</div>

...是否可以从 HTML 中省略外部 div 并执行类似这样的操作(使用 LESS):

section {
enclose-with(.purely-aesthetic-wrapper);
}

很抱歉,如果这是一个显而易见的问题,但我找不到答案。

最佳答案

简短的回答是否定的,这是不可能的。

LESS 是 css 预处理器,它与 HTML/DOM-tree 无关

关于html - 少/CSS : Is it possible to wrap a class around the outside of another without HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23368882/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com