当前位置:网站首页>Depth selector
Depth selector
2022-04-23 09:54:00 【YoungMan_ 09】
Project development process , Component libraries are often used by third parties , In order to quickly build functional modules .
for example ; Use Element UI Walking lantern ( Shuffling figure ) Components
<el-carousel height="150px">
<el-carousel-item v-for="item in 4" :key="item">
<h3 class="small">{
{ item }}</h3>
</el-carousel-item>
</el-carousel>
At this time, I want to change the style or offset position of the left and right arrow indicators

View the built-in style code

Whether it's direct use button tag chooser Or is it Class name You can't change the style
This is because in the style Used in less(scss) and scoped
It's needed at this time Depth selector 了
for example , modify button Size and location , Use ::v-deep
::v-deep .el-carousel__arrow--left {
width: 50px;
height: 50px;
left: 100px;
background-image: url('~@/assets/images/indeximg/left.png');
}
::v-deep .el-carousel__arrow--right {
right: 100px;
width: 50px;
height: 50px;
background-image: url('~@/assets/images/indeximg/right.png');
}
There are other ways to write, such as >>> Or is it /deep/, But it doesn't work here , So use ::v-deep
Take a brief note of
版权声明
本文为[YoungMan_ 09]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230954210977.html
边栏推荐
- 中控学习型红外遥控模块支持网络和串口控制
- 通过流式数据集成实现数据价值(2)
- Formattime timestamp format conversion
- JS DOM learn three ways to create elements
- Custom login failure handling
- ABAP implementation publishes restful services for external invocation example
- Redis 过期 key 清理删除策略汇总
- Career planning and implementation in the era of meta universe
- JS what is an event? Event three elements and operation elements
- LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
猜你喜欢

Exclusive thoughts and cases of JS

Planning and construction of industrial meta universe platform

实践六 Windows操作系统安全攻防

Nvidia最新三维重建技术Instant-ngp初探

Epidemic prevention registration applet

Construire neuf capacités de fabrication agile à l'ère métacosmique

Failureforwardurl and failureurl

2022年上海市安全员C证考试题库及答案
MapReduce计算流程详解

《Redis设计与实现》
随机推荐
Skill point digging
C语言:表达式求值(整型提升、算术转换 ...)
第二章 In-Memory 体系结构 (IM-2.2)
Windows安装redis并将redis设置成服务开机自启
PHP notes (I): development environment configuration
计算机网络安全实验二|DNS协议漏洞利用实验
How to use SQL statement union to get another column of another table when the content of a column in a table is empty
JS scope, scope chain, global variables and local variables
[hdu6868] absolute math (pusher + Mobius inversion)
SQL调优系列文章之—SQL调优简介
Nvidia最新三维重建技术Instant-ngp初探
Rain produces hundreds of valleys, and all things grow
SAP 03-amdp CDs table function using 'with' clause
Mobius inversion
通过流式数据集成实现数据价值(3)- 实时持续数据收集
杰理之用户如何最简单的处理事件【篇】
Nine abilities of agile manufacturing in the era of meta universe
JS DOM event
PHP笔记(一):开发环境配置
[Niuke practice match 68] fans of Niuniu (matrix fast power cycle matrix optimization)