category {} .category-(slug) {} .tag {} .tag-(slug) {} .page-parent {} .page-child parent-pageid-(id) {} .page-template
页面层次中: 父级页面输出:page-parent 子级页面输出:page-child parent-pageid-{ID} 自定义页面模版中: 应用了页面模版的页面会输出:page-template
一般比较推荐的方法是,新建一个名为“page-template”或者相关名字的文件夹,专门用来放置页面模板。
.category-(slug) {} .tag {} .tag-(slug) {} .page-parent {} .page-child parent-pageid-(id) {} .page-template
h2 { font-size: 38px; } </style> </head> <body class="home page page-id-7 <em>page-template</em>
normal;font-size:16px;}.heading h2 {font-size: 38px;}</style></head><body class="home page page-id-7 <em>page-template</em>