我想包括箭头图标进入我的手风琴...... 我不知道如何写CSS的这个组合图像 这里是我的形象联系http://code.jquery.com/ui/1.9.1/themes/base/images/ui-icons_454545_256x240.pngjQuery的手风琴图像
这里是我的js代码
/*!
* Vallenato 1.0
* A Simple JQuery Accordion
*
* Designed by Switchroyale
*
* Use Vallenato for whatever you want, enjoy!
*/
$(document).ready(function()
{
//Add Inactive Class To All Accordion Headers
$('.accordion-header').toggleClass('inactive-header');
//Set The Accordion Content Width
var contentwidth = $('.accordion-header').width();
$('.accordion-content').css({'width' : contentwidth });
// The Accordion Effect
$('.accordion-header').click(function() {
if($(this).is('.inactive-header')) {
$('.active-header').toggleClass('active-header').toggleClass('inactive-header').next().slideToggle().toggleClass('open-content');
$(this).toggleClass('active-header').toggleClass('inactive-header');
$(this).next().slideToggle().toggleClass('open-content');
}
else {
$(this).toggleClass('active-header').toggleClass('inactive-header');
$(this).next().slideToggle().toggleClass('open-content');
}
});
return false;
});
@Scorpio洛尔石器时代在这里? –
@Scorpio:但在这里他们已经使用完整的图像http://jqueryui.com/accordion/ – user1828505