我无法用我的代码理解 jQuery UI 选项卡。
这是我的 HTML:
<div id="main">
<div>
<div class="ui-widget">
<div class="ui-widget-header ui-corner-top tabs3">
<span><a href="">My Databases</a></span>
<span class="selected ui-corner-top"><a href="">Databases Stats</a></span>
</div>
<div class="ui-widget-content ui-corner-bottom">
<div id="info-box">
<div class="info-box-left">
<h4 style="margin:0;">My Databases</h4>
<p>You could not be registered due to a system error. We apologize for any inconvenience.</p>
</div>
</div>
<div class="list_content_holder" id="tbl"></div>
</div>
<div class="ui-widget-content ui-corner-bottom">
<div id="info-box">
<div class="info-box-left">
<h4 style="margin:0;">Databases Stats</h4>
<p>You could not be registered due to a system error. We apologize for any inconvenience.</p>
</div>
</div>
<div class="list_content_holder" id="tbl"></div>
</div>
</div>
</div>
</div>
这是CSS:
.tabs3 {
white-space: nowrap;
}
.tabs3 {
border-bottom: medium none;
padding: 6px;
}
.tabs3 span {
margin: 0 5px;
padding: 9px 20px 7px;
}
.tabs3 span.selected {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background: url("images/ui-bg_highlight-hard_100_f9f9f9_1x100.png") repeat-x scroll 50% top #F9F9F9;
border-color: #CCCCCC;
border-image: none;
border-style: solid;
border-width: 1px 1px 0;
color: #222222;
position: relative;
z-index: 5;
}
这是小提琴
我的问题是使用 jquery 在上面的 html 中添加标签。我已经导入 jquery-ui-1.10.3 并尝试制作标签。但它很难用这个 HTML 做。
谢谢你。