0
我使用jQuery UI和Wordpress一起顯示選項卡式窗體。 jQuery似乎正在添加標籤標記正確。jQuery UI將列表顯示爲列表
<div id="tabs">
<ul>
<li><a href="/community_users_form/profile_edit/<?php echo $cid.'/'.$userid?>">Profile</a></li>
<li><a href="#tabs-2">Communities</a></li>
<li><a href="/community_users_form/roles_edit/<?php echo $cid.'/'.$userid?>">Roles</a></li>
<li><a href="#tabs-4">Admin</a></li>
<li><a href="#tabs-5">Delegation</a></li>
<li><a href="#tabs-6">Payments</a></li>
<li><a href="#tabs-7">Email</a></li>
<li><a href="#tabs-8">Activity</a></li>
</ul>
更改
<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="ui-id-2" aria-labelledby="ui-id-1" aria-selected="true" aria-expanded="true"><a href="/community_users_form/profile_edit/2568/" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">Profile</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-3" aria-selected="false" aria-expanded="false"><a href="#tabs-2" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-3">Communities</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="ui-id-5" aria-labelledby="ui-id-4" aria-selected="false" aria-expanded="false"><a href="/community_users_form/roles_edit/2568/" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-4">Roles</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-4" aria-labelledby="ui-id-6" aria-selected="false" aria-expanded="false"><a href="#tabs-4" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-6">Admin</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-5" aria-labelledby="ui-id-7" aria-selected="false" aria-expanded="false"><a href="#tabs-5" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-7">Delegation</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-6" aria-labelledby="ui-id-8" aria-selected="false" aria-expanded="false"><a href="#tabs-6" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-8">Payments</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-7" aria-labelledby="ui-id-9" aria-selected="false" aria-expanded="false"><a href="#tabs-7" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-9">Email</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-8" aria-labelledby="ui-id-10" aria-selected="false" aria-expanded="false"><a href="#tabs-8" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-10">Activity</a></li>
</ul>
的選項卡顯示爲普通的列表,而不是標籤。
我想你錯過了js或css – vel