<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>tab点击切换</title>
<style type="text/css">
a:hover {
text-decoration:none;
color:#336699;
}
#tab {
/* width:270px; */
padding:5px;
height:150px;
color: #666666;
/* margin:20px; */
}
#tab ul {
padding: 0;
margin: 0;
list-style:none;
text-align: center;
height:46px;
line-height:45px;
border-bottom:1px #EEEEEE solid;
}
#tab ul li {
background-color: #EEEEEE;
width: 100px;
cursor:pointer;
float:left;
list-style:none<
HTML+CSS+JS实现tab切换
于 2022-03-24 15:39:07 首次发布