2016-12-30 51 views
1

我一直在使用此代碼一段時間,突然顯示Chrome中出現錯誤(儘管在Safari中看起來仍然很好)。我正在使用反向排序列表來顯示標題後跟段落。它始終有效的方式是在右邊顯示文字。現在它強制數字下方的標題文本。有序列表突然在Chrome中顯示錯誤

例子:http://cigarwars.net/2016/12/cigar-weekly-rankings-december-15-2016/

如何迫使它顯示的文本旁邊的數量將不勝感激任何幫助。

<ol style="list-style: decimal; list-style-position: inside; margin-left: 0px; display: inline-block;" reversed="reversed"> 
<li> 
<h3>Honey &amp; Hand Grenades</h3> 
<img class="alignright size-thumbnail wp-image-2575" src="http://cigarwars.net/wp-content/uploads/2016/12/viaje-honey-hand-grenades-cigar-e1482430211220-200x200.jpg" alt="Viaje Honey &amp; Hand Grenades cigar" width="200" height="200" />Viaje Honey &amp; Hand Grenades is one of the most recognizable cigars in the world of craft/boutiques, using figurado shapes and bright, foil-wrapped packaging. The cigars use a Nicaraguan puro blend and have been made for 2012, 2013, and 2016 small-batch releases. 

<a href="http://cigarwars.net/?p=2536">More info...</a> 

[su_list icon="icon: minus" icon_color="#b9b9b9"] 
<ul> 
<li>Wins: 14</li> 
<li>Losses: 16</li> 
<li>Record: 46.7%</li> 
</ul> 
[/su_list] 
</li></ol> 

回答

1

h1-h6標題是塊級元素。如果將它們放入li元素中,它們通常會顯示在下一行中。你可以用造型類似下面改變這種行爲:

h3 
{ 
    display:inline; 
} 

試試這個,看看是否符合行爲您的要求。

+0

這樣做的伎倆,謝謝! – jordanG