找回密码
 立即注册

QQ登录

只需一步,快速开始

凄美地

注册会员

8

主题

28

帖子

144

积分

注册会员

积分
144
凄美地
注册会员   /  发表于:2024-4-17 09:11  /   查看:270  /  回复:2
1金币
filepreviewer样式能修改吗
附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

最佳答案

查看完整内容

自定义CSS,下面是我的,可以作为参考 在-布局-自定义大小64*64 体验

2 个回复

倒序浏览
最佳答案
最佳答案

中级会员   /  发表于:2024-4-17 09:11:57
来自 2#
自定义CSS,下面是我的,可以作为参考

在-布局-自定义大小64*64 体验



  1. /*设置FilePreviewer  单元格边框为无 */
  2. div.FP-root .FP-explorer .FP-explorer-content{
  3.     margin: 0rem;
  4. }
  5. /*设置FilePreviewer  文件边框为无 */
  6. .FP-root .FP-explorer .FP-file{
  7.     margin: 0rem;
  8. }
  9. /*设置FilePreviewer  设置删除按钮宽高宽,和外边距 */
  10. .FP-root .FP-explorer .FP-file .FP-file-delete{
  11.     width: 0.8rem;
  12.     height: 0.8rem;
  13.     margin:0px;
  14. }
  15. /*设置FilePreviewer  设置删除按钮红色 */
  16. .FP-root .FP-explorer .FP-explorer-content.FP-explorer-hiddentoolbar .FP-file.FP-selected.FP-actived .FP-file-delete{
  17.     background-color:orangered;
  18. }
  19. /*设置FilePreviewer  设置悬浮删除按钮时红色 */
  20. .FP-root .FP-explorer .FP-explorer-content.FP-explorer-hiddentoolbar .FP-file.FP-selected.FP-actived .FP-file-delete:hover{
  21.     background-color:orangered;
  22. }
  23. /*设置FilePreviewer  设置悬浮图片显示删除按钮,设置为红色*/
  24. .FP-root .FP-explorer .FP-explorer-content.FP-explorer-hiddentoolbar .FP-file:hover .FP-file-delete{
  25.     display:block;
  26.     background-color:orangered;
  27. }
  28. /*设置FilePreviewer  设置预览最大宽度为浏览器宽度90%*/
  29. .FP-root .FP-previewer .FP-previewer-content .FP-carousel-item{
  30.     width: 100%;
  31.     height: 100%;
  32.     max-width: 90%;
  33. }
复制代码

评分

参与人数 1金币 +5 收起 理由
Nathan.guo + 5 赞一个!

查看全部评分

回复 使用道具 举报
Nathan.guo活字格认证 Wyn认证
超级版主   /  发表于:2024-4-17 18:01:54
3#
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部