1 Star 0 Fork 0

laineyling / day_2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index-高亮.html 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
laineyling 提交于 2022-10-11 23:41 . 10.11
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
.tabbar{
position: fixed;
bottom: 0;
width: 100%;
padding: 10px;
border-top: 1px solid #ccc;
box-sizing: border-box;
display: flex;
justify-content: space-around;
text-align: center;
line-height: 40px;
}
.tabbar div.active{
color: white;
width: 25%;
background-color: #ccc;
font-size: 20px;
}
</style>
</head>
<body>
<div id="app">
<div class="tabbar">
<!-- :style="{color: currentIndex == index?'white':'', background: currentIndex == index?'red':'' }" -->
<div :class="{active: currentIndex == index }" @click="handleClick(index)" class="btn" v-for="(item,index) in list">
<!-- <img src="" alt=""> -->
<div class="name">{{item.name}}</div>
</div>
</div>
</div>
<script src="./vue-2.5.21.js"></script>
<script src="./index-高亮.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laineyling/day_2.git
git@gitee.com:laineyling/day_2.git
laineyling
day_2
day_2
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891