gpt4 book ai didi

asp.net - 当我使用 Metro UI-CSS 时 Accordion 不工作

转载 作者:行者123 更新时间:2023-11-28 11:18:24 27 4
gpt4 key购买 nike

我正在构建一个看起来应该像 windows8 Pattern 的 Web 应用程序,所以我搜索并找到了使用 MetroUI-CSS 的方法,您可以在其中使用一组样式来创建网站 具有类似于 Windows 8 的界面。 我是新来的 在我的应用程序中,首先我需要一个 Accordion ,所以我阅读了手册并将其应用到我的应用程序中,但不知何故 Accordion 不工作 Accordion 的内容没有打开。

i am new in "MetroUI-CSS",so i don't know why Accordion is not opening...?

please help me to fix it..

Thanks In advance
i am pasting my code here

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamStartPage.aspx.cs" Inherits="Project_Irshad.ExamStartPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="css/metro-bootstrap-responsive.css" rel="stylesheet" />
<link href="css/metro-bootstrap.css" rel="stylesheet" />
<script src="js/js/jquery.easing.1.3.min.js"></script>
<script src="js/js/jquery.min.js"></script>
<script src="js/metro/metro-accordion.js"></script>
<title>ExamStart</title>
<style>
.main {
width: 100%;
}

.left_content {
width: 30%;
float: left;
}

.Right_Content {
width: 70%;
float: right;
}
</style>
<script type="text/javascript">

</script>
</head>
<body class="metro">
<form id="form1" runat="server">
<div class="main">
<div class="left_content">
<div class="accordion" data-role="accordion">
<div class="accordion-frame">
<a href="#" class="heading">Section 1</a>
<div class="content">
<a>Hello Every One...</a>
</div>
</div>
<div class="accordion-frame">
<a href="#" class="heading">Section 1</a>
<div class="content">
<a>Hello Every One in section 2</a>
</div>
</div>
</div>
</div>
<div class="Right_Content">
</div>
</div>
</form>
</body>
</html>

最佳答案

请尝试 JQuery Accordion。

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ExamStart</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">
<script>
$(function() {
$( "#accordion" ).accordion();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="accordion">
<h3>Section 1</h3>
<div>
<p>
Hello Every One Section 1...
</p>
</div>
<h3>Section 2</h3>
<div>
<p>
Hello Every One Section 2...
</p>
</div>
<h3>Section 3</h3>
<div>
<p>
Hello Every One Section 3...
</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>
Hello Every One Section 4...
</p>
<p>
Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos.
</p>
</div>
</div>

</form>
</body>
</html>

希望对您有所帮助。谢谢

关于asp.net - 当我使用 Metro UI-CSS 时 Accordion 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21650816/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com