* { margin:0; padding:0; } ul { list-style:none; } .select { width:100px; margin:50px auto; } .select > a { display:inline-block; width:100%; height:30px; border:1px solid #ccc; line-height:30px; text-align:center; color:#333; text-decoration:none; } .select > ul { /*border-left:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc; */ position:absolute; border:1px solid #ccc; border-top-width:0; width:100px; /*默认隐藏下拉列表*/ display:none; } .select > ul > li { text-align:center; border-top:1px solid #ccc; margin-top:-1px; } .select > ul > li > a { text-decoration:none; color:#333; }