几天使用jquery ui tabs插件设计网页,步骤是按照网上的方法做的,可惜没有tabs页面切换的效果,源代码如下,希望高手指点
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tabs.aspx.cs" Inherits="tabs" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<link type="text/css" href="css/jquery-ui-1.8.4.custom.css" />
<script type="text/javascript" src="jquery/jquery-1.4.2.min.js">
</script>
<script type="text/javascript" src="jquery/jquery-ui-1.8.4.custom.min.js">
</script>
<script type="text/javascript">
$(function(){
$('#tabs > ul').tabs();
}); </script>
</head>
<body>
<form id="form1" runat="server">
<div id="container">
<div id="tabs">
<ul>
<li><a href="#receivebox">收件箱</a></li>
<li><a href="#sendbox">发件箱</a></li>
<li><a href="#sendmessage">发送信息</a></li>
</ul>
<div id="receivebox">收件箱</div>
<div id="sendbox">发件箱</div>
<div id="sendmessage">发送消息</div>
</div>
</div>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tabs.aspx.cs" Inherits="tabs" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<link type="text/css" href="css/jquery-ui-1.8.4.custom.css" />
<script type="text/javascript" src="jquery/jquery-1.4.2.min.js">
</script>
<script type="text/javascript" src="jquery/jquery-ui-1.8.4.custom.min.js">
</script>
<script type="text/javascript">
$(function(){
$('#tabs > ul').tabs();
}); </script>
</head>
<body>
<form id="form1" runat="server">
<div id="container">
<div id="tabs">
<ul>
<li><a href="#receivebox">收件箱</a></li>
<li><a href="#sendbox">发件箱</a></li>
<li><a href="#sendmessage">发送信息</a></li>
</ul>
<div id="receivebox">收件箱</div>
<div id="sendbox">发件箱</div>
<div id="sendmessage">发送消息</div>
</div>
</div>
</form>
</body>
</html>
解决方案 »
- 如何正确获取当前口宽度
- html页面中用了大量的javascript脚本,造成阅读页面很困难,有什么办法能让javascript脚本隐藏起来?
- JS封装问题 求救!!
- 有没有办法获取元素的真实高度?
- (请教)JS中关联数组的字符串写法
- javascript中的$是什么含义
- 使用javascript在一个图像上的某个位置画带颜色的圆点或者方框(在线等)
- 请问JAVASCRIPT如何调用COM对象?
- 怎样在一个 .js 文件中包含另一个 .js 文件,不通过其他文件。谢谢!
- datagrid关联问题
- javascript操作word控件问题
- 请教各位高手:调用onbeforeunload,多次弹出对话框
这个给你做参考。