当前位置:网站首页>el-dropdown下拉菜单样式修改,去掉小三角
el-dropdown下拉菜单样式修改,去掉小三角
2022-08-10 05:31:00 【怎么吃不饱捏】
修改后样式如下:
修改样式在带有scoped的style标签内是无效的
另写一个style标签,不要加scoped
具体代码如如下:
.el-dropdown-menu {
background-color: #0a1d30 !important ;
border: 1px solid #00487f !important ;
border-radius: 0px;
}
.el-popper {
position: absolute !important ;
top: 481px !important;
left: 52px !important;
}
.el-popper[x-placement^=bottom]{
margin-top: 0px;
margin-bottom: 0px;
padding: 0px;
}
.el-dropdown-menu__item:not(:last-of-type){
border-bottom:1px solid #00487f;
}
/* 消除小三角 */
.el-popper[x-placement^=bottom] .popper__arrow{
border: none;
}
.el-popper[x-placement^=bottom] .popper__arrow::after{
border: none;
}
具体位置根据自己的情况调整一下就好了
边栏推荐
猜你喜欢
随机推荐
使用Tenserboard可视化深度学习训练过程
Zhongang Mining: Strong downstream demand for fluorite
R简单统计计算--笔记
Pony语言学习(七)——表达式(Expressions)语法(单篇向)
I have a dream for Career .
Concurrency tool class - introduction and use of CountDownLatch, CyclicBarrier, Semaphore, Exchanger
基于Qiskit——《量子计算编程实战》读书笔记(一)
【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
【Pei Shu Theorem】CF1055C Lucky Days
【YOLOv5训练错误】权重文件出错?
SSM框架整合实例
Matlab simulation of multi-factor house price prediction based on BP neural network
基于Qiskit——《量子计算编程实战》读书笔记(六)
canvas canvas drawing clock
How does Jenkins play with interface automation testing?
Transforming into a product, is it reliable to take the NPDP test?
R绘制图像,图像特征提取
MySql's json_extract function processes json fields
【yolov5训练错误】WARNING: Ignoring corrupted image
openGauss源码,在window系统用VSCode维护吗?