3

私はZurbCssフレームワークを使用しています。foundation.zurb.com/docs/ forms.phpに記載れているように、以下に提供されているものと同じコードを使用しました。

<label for="customDropdown">Dropdown Label</label>
<select style="display:none;" id="customDropdown">
  <option SELECTED>This is a dropdown</option>
  <option>This is another option</option>
  <option>Look, a third option</option>
</select>
<div class="custom dropdown">
  <a href="#" class="current">This is a dropdown</a>
  <a href="#" class="selector"></a>
  <ul>
    <li>This is a dropdown</li>
    <li>This is another option</li>
    <li>Look, a third option</li>
  </ul>
</div>

しかし、ドロップダウンが表示されません。上記のコードは、Webサイトからコピーして貼り付けられています。

ありがとうございました。

4

1 に答える 1

6

form要素にclass='custom'を入れるのを忘れたのはばかげた間違いでした。

于 2012-07-26T10:53:04.677 に答える