当前位置: 首页 > news >正文

(css)列表点击前后样式

(css)列表点击前后样式


效果:

在这里插入图片描述


html

<ul v-show="rightOne" class="one-content"><liv-for="(item,index) in exampleList":key="index"@click="searchHandle(item,index)"class="liClass":class="{ 'active': change1 === index }"//不可少tabindex="1" //不可少><div class="liTip"><div class="liTipmini"></div></div><span class="liSpan" :title="item">{{item}}</span></li>
</ul>

css

.one-content {height: 84%;background-image: url("../assets/image/list-background.png");background-size: 100% 100%;padding: 0px 10px 10px 30px;font-size: 16px;font-family: Medium-font;overflow-y: auto;.liClass {line-height: 50px;padding: 0 10px;border-bottom: 1px solid rgba(3, 92, 222, 0.4);display: flex;align-items: center;color: #8a8989;cursor: pointer;.liTip {width: 14px;height: 14px;border: 1px solid #8a8989;border-radius: 50%;display: flex;justify-content: center;align-items: center;.liTipmini {width: 4px;height: 4px;background-color: #8a8989;border-radius: 50%;}}.liSpan {width: 95%;margin-left: 10px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}}.active {color: #fff !important;border-bottom: 1px solid #7fd6b4 !important;.liTip {border: none;.liTipmini {background-color: #fff;}}}.liClass:hover,.liClass:focus {color: #fff;border-bottom: 1px solid #7fd6b4;.liTip {border: none;.liTipmini {background-color: #fff;}}}
}
http://www.lryc.cn/news/100465.html

相关文章:

  • Redis服务优化
  • uniAPP 浙政钉 入门手册
  • flask处理文件上传
  • 教雅川学缠论04-笔
  • Unity3d_post process layer 抗锯齿设置
  • 基于FPGA实现OSD功能
  • Java019-1——面向对象的三大特性
  • 2023年的深度学习入门指南(22) - 百川大模型13B的运行及量化
  • 无涯教程-jQuery - empty( )方法函数
  • 微信小程序实现蓝牙开锁、开门、开关、指令发送成功,但蓝牙设备毫无反应、坑
  • 微信小程序中使用echarts方法
  • 【面试题】前端中 JS 发起的请求可以暂停吗?
  • 通过社区参与解锁早期增长:Maven 远程医疗平台概览
  • Vue中使用echarts
  • 边缘计算对现代交通的重要作用
  • Python桥接模式介绍、使用
  • ChatGPT在知识图谱的构建和更新中的应用如何?
  • JS正则表达式:常用正则手册/RegExp/正则积累
  • 自动化测试框架unittest与pytest的区别!
  • 【Git】
  • [论文笔记] CLRerNet: Improving Confidence of Lane Detection with LaneIoU
  • LeetCode|backtracking|review:40. 131. 93. 47. 332. | 37. Sudoku Solver
  • 被泼冷水后,谁能超越微服务?
  • 多线程(JavaEE初阶系列5)
  • Minimum Snap闭式求解相关公式推导
  • Spring源码(五)— 解析XML配置文件(一) bean标签解析流程
  • 隐私政策声明
  • Flutter 最佳实践和编码准则
  • LangChain Agents深入剖析及源码解密上(一)
  • css定义超级链接a标签里面的title的样式