日期:2014-05-16 浏览次数:20416 次
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script src="jqueryui/js/jquery-1.9.1.js" type="text/javascript"></script>
<script src="jqueryui/js/jquery-ui-1.10.2.custom.min.js" type="text/javascript"></script>
<link rel="Stylesheet" type="text/css" href="jqueryui/css/smoothness/jquery-ui-1.10.2.custom.css"/>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="tabs">
<ul>
<li><a href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1">Content 1</div>
<div id="tab2">Content 2</div>
<div id="tab3">Content 3</div>
</div>
<script src="Tabs.js" type="text/javascript"></script>
</div>
</form>
</body>
</html>
$("#tabs").tabs({ collapsible: true,
disabled: [],
selected: 1,
event: 'click',
fx: { opacity: "toggle"}
});
<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible">
<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-labelledby="ui-id-1" aria-selected="true" aria-controls="tab1"><a id="ui-id-1" class="ui-tabs-anchor" role="presentation" tabIndex="-1" href="#tab1">Tab 1</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabIndex="-1" aria-la