* { padding:0; margin:0; } ul { list-style-type:none; } .parentWrap { width:200px; text-align:center; } .menuGroup { border:1px solid #999; background-color:#e0ecff; } .groupTitle { display:block; height:20px; line-height:20px; font-size:16px; border-bottom:1px solid #ccc; cursor:pointer; } .menuGroup > div { height:200px; background-color:#fff; display:none; }
手风琴,点击当前显示,其他隐藏