(css)列表点击前后样式

news/2025/2/12 17:58:56/

(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.ppmy.cn/news/979795.html

相关文章

Minimum Snap闭式求解相关公式推导

文章目录 1 M i n i m u m Minimum Minimum S n a p Snap Snap闭式求解的推导1.1 二次规划等式约束构建1.2 求 d d d1.3 转成无约束优化问题 1 M i n i m u m Minimum Minimum S n a p Snap Snap闭式求解的推导 可以看看我的这几篇Blog1&#xff0c;Blog2&#xff0c;Blog…

odoo16中的 ‘ir.ui.view‘ object has no attribute ‘_render‘

odoo16中的 ir.ui.view object has no attribute _render 查了下odoo15的代码: def _render(self, values=None, engine=ir.qweb, minimal_qcontext=False):""" Render the template. If website is enabled on request, then extend rendering context with …

uniapp实现预约时间选择弹窗组件

做了个组件&#xff0c;实现出当日预约时间组件&#xff0c;效果图如下 废话不多说&#xff0c;直接上代码&#xff0c;代码简单&#xff0c;参数自己任意改 <template><view class"inventory"><u-popup :show"show" :round"10"…

算法的时间复杂度、空间复杂度如何比较?

目录 一、时间复杂度BigO 大O的渐进表示法&#xff1a; 例题一&#xff1a; 例题2&#xff1a; 例题3&#xff1a;冒泡排序的时间复杂度 例题4&#xff1a;二分查找的时间复杂度 书写对数的讲究&#xff1a; 例题5&#xff1a; 实例6&#xff1a; 利用时间复杂度解决编…

Python原型模式介绍、使用;浅拷贝/深拷贝原理

一、Python原型模式&#xff08;Prototype Pattern&#xff09;简介 1. 概念 原型模式是一种创建型设计模式&#xff0c;它通过复制&#xff08;克隆&#xff09;现有对象来创建新对象。这样可以避免使用复杂的构造函数来创建对象&#xff0c;提高程序的性能和可维护性。 2. 功…

《cool! autodistill帮你标注数据训练yolov8模型》学习笔记

《cool! autodistill帮你标注数据训练yolov8模型》 Summary Autodistill是一个用于自动标注数据训练边缘模型的工具。 Highlights &#x1f4a1; Autodistill由Robotflow推出&#xff0c;用于训练建立部署计算机视觉模型。&#x1f4bb; 通过使用大模型自动标注和训练小模型…

100天软件设计师备考计划

我已经毕业并且刚刚开始工作&#xff0c;目前在一家小公司从事Java开发工作。虽然我的工作轻松&#xff0c;但我希望在空闲时间里能够提升自己。由于我的专业与计算机相关&#xff0c;我有一定的基础&#xff0c;因此我计划在2023年用100天的时间考取软件设计师资格。在学习的过…

赛码-0726

01串的魔法 思路&#xff1a;虽然标着dp&#xff0c;其实是滑动窗口问题&#xff0c;dp 会超时 import java.util.*;public class Main {public static void main(String[] args) {Scanner scanner new Scanner(System.in);int n scanner.nextInt();int k scanner.nextInt…