胸腺包裹膜片段

时间:2018-09-04 15:20:09

标签: thymeleaf

好吧,所以我知道在百里香中,人们可以为页眉,页脚等格式创建片段,

<div id="header">
   .... some common header stuff
</div>
<div id="content">
   .... page content
</div>
<div id="footer">
   .... some common footer stuff
</div>

因此可以创建页眉和页脚的片段,但是如果您在HTML的标头中有通用的样式表,脚本等以及通用的包装器代码,会发生什么情况。所以也许像这样

<!DOCTYPE html>
<html>
    <head>
        ... common head section
    <head>
    <body>
        <div class="container>
            <div>
                <div>
                    <div id="header">
                        .... some common header stuff
                    </div>
                    <div id ="content">
                        .... view specific content
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>

再次使用上面的示例,我可以为头div创建一个片段,但是每个视图共有的所有包装div呢?

0 个答案:

没有答案