2016-09-22 26 views
-2

現在、いくつかの順序付きリストhtmlタグをネストし、それぞれを別々のタイプとして扱おうとしています。しかし、リストの要素はすべてタイプ1のままであり、その理由を伝えることはできません。異なるタイプのネストされた順序付きリスト

これは私のコードです:

<ol type="1"> 
    <li>Sales Associate 2003- Present</li> 
    <ol type="2"> 
     <li>Target West, Wichita, KS</li> 
      <ol type="3"> 
       <li>Help customers with purchases</li> 
       <li>Handle customer questions and complaints, working to ensure complete customer satisfaction</li> 
       <li>Run cash register</li> 
       <li>Monitor security system</li> 
      </ol> 
    </ol> 

    <li>Grounds Keeper 1998-2003</li> 
    <ol type="2"> 
     <li>Riverside Golf Course, Wichita, KS</li> 
      <ol type="3"> 
       <li>Helped with the general outdoor maintenance of the apartment complex</li> 
       <li>Worked as a member of a team</li> 
       <li>Scheduled maintenance repairs with tenants as needed</li> 
      </ol> 
    </ol> 

</ol> 
+1

。別のリスト内でリストを開始することはできません。リスト内にリストを入れる必要があります。そして、ここでtype属性が何を期待していますか?開始属性を意味しましたか? – j08691

+0

OLの子としてOLを持つことはできません。これはHTMLが無効です。それをリスト項目に入れる必要があります。 – CBroe

答えて

1

あなたが別のolの直接の子としてolを持つことができません、それはli内にネストされなければなりません。

<ol type="1"> 
    <li>Sales Associate 2003- Present 
     <ol type="2"> 
      <li>Target West, Wichita, KS 
       <ol type="3"> 
        <li>Help customers with purchases</li> 
        <li>Handle customer questions and complaints, working to ensure complete customer satisfaction</li> 
        <li>Run cash register</li> 
        <li>Monitor security system</li> 
       </ol> 
      </li> 
     </ol> 
    </li> 
.... 
</ol> 

さらにtype 2と3は、有効な属性値ではありません。

有効なプロパティは次のとおりです。

  • 1 10進数を表します
  • aが下ケースラテンアルファベットを表します(例:1. 2. 3. ...など。)(例えば、ABC ...など。)
  • A
  • i小文字ローマ数字を表し(例えば、ABC ...など)大文字ラテンアルファベットを表し(例えば、IをII。III。...など)
  • I大文字のローマ数字を表します(例:。 I. II。 III。 ...等)
0

あなたはこのようli要素にあなたの新しいリストをラップする必要があります:あなたのHTMLが無効である

<li> Text 
<ol> 
    <li>...</li> 
</ol> 
</li> 
関連する問題