Element UI自带的小图标,替换成自己的

news/2024/7/23 19:26:02 标签: 前端, vue.js

Element UI自带的小图标,替换成自己的

代码:

.el-icon-date {
    background: url('你的图片路径') center center no-repeat;
    background-size: 20px;
}

.el-icon-date:before {
    content: "替";
    font-size: 16px;
    visibility: hidden;
}

注意这里除了class的值和background的值需要改变,其它都不需要边,:beforecontent值就是"替"
同时注意一下,before一开始前面我写了两个::,但是没有效果,改成一个符号后,是可以的


http://www.niftyadmin.cn/n/1302078.html

相关文章

springboot集成统一认证服务

springboot集成统一认证服务 配置文件配置属性 # 统一认证登录 # cas服务地址 cas.loginServerhttps://xxx.xxx.xxx/cas #cas服务端的登录地址 cas.validateServerhttps://xxx.xxx.xxx/cas #当前服务器的地址(客户端) cas.serverName当前服务地址配置类 (1&…

java excel 导出多个sheet

java excel 导出多个sheet 装载数据的实体类 package com.yfh.common.core.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; import java.util.Map;/*** author zdj* v…

java 路径截取--截取倒数第二个指定字符之前/后的字符串

java 路径截取–截取倒数第二个指定字符之前/后的字符串 截取倒数第二个"/"之前的字符串 String path"/home/henry/Desktop/1.txt";//获得""/home/henry",并且不需要前面的"/" String oopath.substring(0,path.lastIndexOf("…

springboot集成easypoi实现excel多sheet导入

springboot集成easypoi实现excel多sheet导入 pom依赖 <!--easypoi依赖&#xff0c;excel导入导出--> <dependency><groupId>cn.afterturn</groupId><artifactId>easypoi-spring-boot-starter</artifactId><version>4.3.0</versio…

springboot集成easypoi实现excel多sheet导入案例

springboot集成easypoi实现excel多sheet导入案例 pom依赖 <!--easypoi依赖&#xff0c;excel导入导出--> <dependency><groupId>cn.afterturn</groupId><artifactId>easypoi-spring-boot-starter</artifactId><version>4.3.0</ve…

springboot集成easypoi实现excel多sheet导出,并设置表头样式

springboot集成easypoi实现excel多sheet导出&#xff0c;并设置表头样式 导入依赖 <!--easypoi依赖&#xff0c;excel导入导出--> <dependency><groupId>cn.afterturn</groupId><artifactId>easypoi-spring-boot-starter</artifactId><…

mysql 限定时间段范围

mysql 限定时间段范围 startTime: 开始时间 endTime&#xff1a;结束时间 select * from table where ((start_time > startTime and start_time < endTime) OR(start_time startTime and end_time > endTime) OR(end_time > startTime and end_time < endTi…

SpringBoot2.X打包成war

SpringBoot2.X打包成war 修改项目中的启动类Application main class&#xff1a;继承SpringBootServletInitializer并重载configure方法 SpringBootApplication public class Application extends SpringBootServletInitializer {Overrideprotected SpringApplicationBuilder c…