誰能告訴我怎麼去CSS這樣的:http://jqueryui.com/demos/accordion/#mouseover爲下面的代碼:造型一個jQuery UI的手風琴
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<title>jQuery Vertical Accordion Menu Plugin v 2.6</title>
<link href="css/dcaccordion.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type='text/javascript' src='js/jquery.cookie.js'></script>
<script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/jquery.dcjqaccordion.2.7.min.js'></script>
<script type="text/javascript">
$(document).ready(function($){
$('.accordion-6').dcAccordion({
eventType: 'hover',
autoClose: true,
saveState: true,
disableLink: true,
menuClose: false,
speed: 'medium',
showCount: true,
autoExpand: true,
cookie : 'dcjq-accordion-1',
classExpand : 'dcjq-current-parent',
menuClose: false
});
});
</script>
<link href="css/skins/blue.css" rel="stylesheet" type="text/css" />
<link href="css/skins/graphite.css" rel="stylesheet" type="text/css" />
<link href="css/skins/grey.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrap">
<div class="graphite demo-container">
<ul class="accordion accordion-6">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a>
<ul class="accordion" id="accordion-6">
<li><a href="#">Mobile Phones & Accessories</a> </li>
<li><a href="#">Desktop</a> </li>
</ul>
</li>
<li><a href="#">About Us</a>
<ul class="accordion" id="accordion-6">
<li><a href="#">About Page 1</a></li>
<li><a href="#">About Page 2</a></li>
</ul>
</li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact us</a></li>
</ul>
</div>
</div>
</body>
</html>
蔭新的這個CSS,所以請誰能告訴我怎麼才達到的.. ?
蔭想着有我的CSS喜歡這個網站:
http://bag-saver.com/uk/shop/black-handbags/
任何人都可以請..?
下載主題,這一主題的CSS添加到您的HTML頁面.. –
首先,不要不要重用你的id(「手風琴」)作爲一個班級 - 這可能會導致各種各樣的問題。其次,你有一個你的代碼的實例嗎?第三,究竟是不是工作? – MassivePenguin
好的,我會改變這個ID的名稱..首先Iam不擅長CSS,而上面的代碼與任何JQuery主題都沒有關係。它有點自定義,所以我不能直接使用那個JQuery主題CSS。所以,對於上面的代碼,我需要一個定製的CSS ..我想我的CSS這樣的:http://jqueryui.com/demos/accordion/#mouseover(如果不完全,至少類似於..),任何人都可以這裏請... ...? –