ul,li,h1 { padding:0; margin:0; } li { list-style:none; } #list { width:240px; border:1px solid #ccc; margin:0 auto; } #list .lis { width:240px; } #list h1 { width:240px; lin-height:30px; text-indent:40px; background:red; } #list .active { background:blue; } #list ul { display:none; } #list ul li { line-height:24px; border:1px solid #ccc; text-indent:24px; } #list ul .hover { background:#CF0; }
js手写