2014-09-29 43 views
0

我在一個頁面上使用兒童主題,我想在其他頁面上留下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] 
+0

你在使用WordPress嗎? – 2014-09-29 14:36:06

+0

是的wordpress 4.0 – T1rnanog 2014-09-29 14:38:59

回答

0

區分這兩個要麼添加一個ID或類將允許您專門針對每個元素。

0

您需要創建一些能夠唯一標識你希望它應用的頁面至。

您可以讓CSS僅適用於<body>具有某個類;或者您可以使用第二個樣式表或該頁面的內聯樣式。

+0

啊我明白你的意思,我認爲最簡單的是內聯風格。但添加到短代碼我不明白。 – T1rnanog 2014-09-29 14:36:22

+0

「短碼」?你什麼意思? – Scimonster 2014-09-29 14:37:18

+0

請參閱原始發貼我添加了 – T1rnanog 2014-09-29 14:38:34