0

http://jqueryui.com/accordion/#custom-iconsに従って、単純なJQueryアコーディオンウィジェットを実装しました

何らかの理由で、ドロップダウンアイコン(ui-icon)がセクションタイトルテキスト内に配置されています。アコーディオンウィジェット

他の誰かがこれを経験しましたか?

html:

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Accordion - Default functionality</title>
</head>
<body>
<div id="accordion">
    <h3>Section 1</h3>
    <div>
        <p>
            Mauris mauris ante...shortened.
        </p>
    </div>
    <h3>Section 2</h3>
    <div>
        <p>
            Sed non urna...shortened.
        </p>
    </div>
    <h3>Section 3</h3>
    <div>
        <p>
            Nam enim risus...(shortened).
        </p>
        <ul>
            <li>List item one</li>
            <li>List item two</li>
            <li>List item three</li>
        </ul>
    </div>
    <h3>Section 4</h3>
    <div>
        <p>
            Cras dictum....(shortened).
        </p>
        <p>
            Suspendisse eu nisl...(shortened).
        </p>
    </div>
</div>
</body>
</html>​

css:

body {
    font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
    font-size: 62.5%;
}​

javascript:

$("#accordion").accordion();​

ありがとう!

4

1 に答える 1

1

私はそれを考え出した!jquery-ui.css、jquery-1.8.2.js、jquery-ui.jsにはバージョン1.8.2を使用していました。なんらかの対立があったと思います。

次のバージョンに変更すると、ドロップダウンアイコンが正しく表示されました...

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
于 2012-11-30T00:21:07.980 に答える