当前位置:网站首页>DataV轮播表组件dv-scroll-board宽度问题
DataV轮播表组件dv-scroll-board宽度问题
2022-06-27 08:06:00 【走出自闭的鸟儿】
需求:使用dv-scroll-board显示多列数据时,由于其默认是平均分配宽度,会导致内容显示不全,我们要修改某一列的宽度,让它显示完全。
解决方法:
方法1:dv-scroll-board自带columnWidth:[]属性,该数组的每个参数即为对应列的宽
// 我的部署时间在第6列,因此要设置至少6个值才能到修改到该列
columnWidth: [
140,140,140,140,140,200
],
方法2:f12查看该列对应的类名,通过样式穿透进行修改。注意,因为组件中原来的样式优先级较高,所以我们加上!important
::v-deep .header-item:nth-child(6), ::v-deep .ceil:nth-child(6) {
width: 200px!important;
}
/deep/和::v-deep效果一样,只是有些情况下不能使用/deep/时,我们采用::v-deep代替
边栏推荐
- Cookie encryption 6
- Time function calculation efficiency of C
- 正确的理解MySQL的MVCC
- 【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
- 洛谷刷题心得记录
- js用switch语句根据1-7输出对应英文星期几
- Read datasets iteratively with xgboost
- (原创)自定义Drawable
- js例题打印1-100之间所有7的倍数的个数及总和
- What are the specialties of database system engineers?
猜你喜欢

【10. 差分】

一种太阳能电荷泵供电电路的方案设计

JS performance reward and punishment examples

js用while循环计算假如投资多年的利率为5%,试求从1000块增长到5000块,需要花费多少年

认识O(NlogN)的排序

Implementation of game hexagon map

Ready to migrate to the cloud? Please accept this list of migration steps

Reference | upgrade win11 mobile hotspot can not be opened or connected

野风药业IPO被终止:曾拟募资5.4亿 实控人俞蘠曾进行P2P投资

SPARQL basic introductory exercise
随机推荐
【13. 二进制中1的个数、位运算】
Redis配置文件详解
JS to determine whether the number entered by the user is a prime number (multiple methods)
Cookie encryption 6
JS, and output from small to large
What are the specialties of database system engineers?
Windows下mysql-8下载、安装、配置教程
What is a flotation machine?
How can I import data from Oracle into fastdfs?
關聯GIS:條條道路通UE5城
【c ++ primer 笔记】第4章 表达式
Online text digit recognition list summation tool
Publications under nature, science and cell
MySQL环境变量配置的教程
How to bind SQL statements to web buttons
无论LCD和OLED显示技术有多好,都无法替代这个古老的显示数码管
爬一个网页的所有导师信息
关联GIS:条条道路通UE5城
PayPal account has been massively frozen! How can cross-border sellers help themselves?
洛谷刷题心得记录