我的网页设计已经设置了 CMS,但我遇到了一些问题。
目前,节都使用相同的 css 标签 .SectionOuterAlt 或 .SectionOuter (如果有多个,则变为“Alt”。这同样适用于 .SectionInner。
我搜索了“SectionOuter”并发现了这行代码。在我看来,它添加了“Alt”。
问题是我需要每个部分都是唯一的,以便我可以添加 css。如果我可以保留“SectionOuter”和“SectionOuterAlt”,但为每个部分包含一个独特的 css 类,以便我可以对每个单独的部分进行独特的更改,那就太好了。
<section class="SectionOuter<?php echo $alt; ?>"> <section class="SectionInner<?php echo $alt; ?>">
有人可以帮忙吗?
繁华开满天机
Cats萌萌