简体   繁体   English

TYPO3 8.7.22 页面 UID CSS

[英]TYPO3 8.7.22 PAGE UID CSS

I was wondering if its possible to use the PAGE UID in CSS to style each site from the website different.我想知道是否可以使用 CSS 中的 PAGE UID 来设置网站中每个站点的样式不同。

Best regards最好的祝福

I found a way to include the Page UID to the body.我找到了一种将页面 UID 包含到正文中的方法。

page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject {
    field = uid
    wrap = <body class="uid-|">
}

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

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