2014-12-04 58 views
0

當我在瀏覽器和螢火蟲中查看某個wordpress頁面時,似乎有一個lnline樣式被添加到我的div。內聯高度被添加到Div

我寫它像這樣...

<div class="menuCol-left"> 
<div class="menuitem"> 
<h3>Buffalo Boneless Wing Dip</h3> 
<p>If you like boneless wings then this dip is for you! A blend of three cheeses, zesty boneless wings, Cajun pepper sauce and our special seasonings all baked together to create this unique dip. Served with tortilla chips and pita points for diggin in.</p> 
<p>~ <b>$10.99</b></p> 
</div> 
</div> 

但是,當我拉起來在檢查元素顯示它像這樣..(開始顯示它的地方發生)

<div class="menuCol-left"> 
*********<div class="menuitem" style="height:168px">********* 
<h3>Buffalo Boneless Wing Dip</h3> 
<p>If you like boneless wings then this dip is for you! A blend of three cheeses, zesty boneless wings, Cajun pepper sauce and our special seasonings all baked together to create this unique dip. Served with tortilla chips and pita points for diggin in.</p> 
<p>~ <b>$10.99</b></p> 
</div> 
</div> 

這可能是一個JavaScript問題?我試過添加最小高度:0!重要; 它在CSS文件中沒有提及.menuitem的高度,在標記中沒有任何關於它的內容。我很困惑。

+0

你使用任何插件爲你的菜單? – vaso123 2014-12-04 14:39:33

+0

它看起來像一個JavaScript問題,但沒有我只能猜測的完整代碼。 – Johni 2014-12-04 14:40:01

回答

1

是的,一些JavaScript代碼設置元素的高度。嘗試搜索.menuitem知道,哪個腳本可以。

0

使用可以搜索所有文件的括號,Dreamweaver,Sublime或antoher編輯器。搜索「#menuitem」和「menuitem」,不帶冒號。可能有一個PHP標籤在那裏添加東西,或者一個JavaScript腳本調用這個標識並將這個參數添加到文件中的某個元素。