我使用的是一个子主题,在一个页面上,我希望在另一个页面上留下30页的空白。但它会影响所有的网页,我如何使它独特?
CSS:
.description.style-16 ol, ul {
margin-left: 30px;
}
.eo-events-shortcode ol, ul {
margin-left: 0; (this one will have no effect)
}HTML:
<div class="one_third">
<div id="homeboxheader">
<h3 class="highlight">Agenda</h3>
<ul class="eo-events eo-events-shortcode">
<li class="eo-event-cat-agenda eo-event-future">
<li class="eo-event-cat-agenda eo-event-future">
</ul>
<div id="homebox_tabs">
</div>
<div class="one_third">
<div class="description clearfix style-16">
<h3 class="highlight">Werken bij SVHW</h3>
<ul>
<li>
<li>
</ul>
</div>将内联添加到
[one_third]
<div id="homeboxheader">
<h3 class="highlight">Agenda</h3>
[eo_events event_start_before='+1 week' event_category=party,birthday's no_events="no events." showpastevents=false numberposts='3'] <a href="%event_url%">%event_title%</a> %start{D d/m}{, H:i}% till %end{H:i}{}% [/eo_events]
<div id="homebox_tabs">
<div class="homeboxtab">[button link="http://intranet/wordpress/?page_id=2418" size="small" color="blue"]Go to agenda[/button]</div>
</div>
</div>
[/one_third]发布于 2014-09-29 16:21:19
要区分这两个元素,添加一个ID或类将允许您专门针对每个元素。
发布于 2014-09-29 14:30:31
您需要创建一些可以唯一标识要应用到的页面的内容。
您可以让CSS只在<body>有特定类的情况下应用;或者可以使用第二个样式表,也可以为该页面使用内联样式。
https://stackoverflow.com/questions/26102262
复制相似问题