请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

amtath 悬赏达人认证 活字格认证

论坛元老

161

主题

1616

帖子

4867

积分

论坛元老

承接开发VX:idejian

积分
4867

活字格高级认证圣诞拼拼乐微信认证勋章悬赏达人活字格认证

QQ

[已处理] 弹窗三角指示器

amtath 悬赏达人认证 活字格认证
论坛元老   /  发表于:2025-5-30 16:43  /   查看:194  /  回复:4
100金币

帮忙写个css,弹窗增加一个三角指示器,
针对 #fgc-popup-dialog

附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

4 个回复

倒序浏览
最佳答案
最佳答案
二麻子活字格认证
高级会员   /  发表于:2025-5-30 16:43:06
来自 4#
本帖最后由 二麻子 于 2025-6-2 22:07 编辑

  1. .FUI-dialog {
  2.   position: relative;
  3. }


  4. /* 右*/
  5. .FUI-dialog::before {
  6. content: '';
  7.   position: absolute;
  8.   left: -10px;
  9.   top: 50%;
  10.   transform: translateY(-50%);
  11.   width: 0;
  12.   height: 0;
  13.   border-top: 10px solid transparent;
  14.   border-bottom: 10px solid transparent;
  15.   border-right: 10px solid #ad0d0d;
  16.   z-index: 2; /* 确保高于弹窗内容 */
  17. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
二麻子活字格认证
高级会员   /  发表于:2025-6-1 22:50:56
2#
基础样式,加上一个装饰样式即可生效



  1. /*基础样式*/
  2. .FUI-dialog {
  3.   position: relative;
  4. }




  5. /* 上 */
  6. .FUI-dialog::before {
  7.   content: '';
  8.   position: absolute;
  9.   top: -10px;
  10.   left: 50%;
  11.   transform: translateX(-50%);
  12.   width: 0;
  13.   height: 0;
  14.   border-left: 10px solid transparent;
  15.   border-right: 10px solid transparent;
  16.   border-bottom: 10px solid #fff;
  17.   z-index: 1;
  18. }
  19. /* 左 */
  20. .FUI-dialog::before {
  21.   content: '';
  22.   position: absolute;
  23.   left: -10px;
  24.   top: 50%;
  25.   transform: translateY(-50%);
  26.   width: 0;
  27.   height: 0;
  28.   border-top: 10px solid transparent;
  29.   border-bottom: 10px solid transparent;
  30.   border-right: 10px solid #fff;
  31.   z-index: 1;
  32. }
  33. /* 右*/
  34. .FUI-dialog::before {
  35. content: '';
  36.   position: absolute;
  37.   right: -10px;
  38.   top: 50%;
  39.   transform: translateY(-50%);
  40.   width: 0;
  41.   height: 0;
  42.   border-top: 10px solid transparent;
  43.   border-bottom: 10px solid transparent;
  44.   border-left: 10px solid #fff;
  45.   z-index: 1;
  46. }


  47. /* 下 */
  48. .FUI-dialog::before {
  49.   content: '';
  50.   position: absolute;
  51.   bottom: -10px;
  52.   left: 50%;
  53.   transform: translateX(-50%);
  54.   width: 0;
  55.   height: 0;
  56.   border-left: 10px solid transparent;
  57.   border-right: 10px solid transparent;
  58.   border-top: 10px solid #fff;
  59.   z-index: 1;
  60. }
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
amtath悬赏达人认证 活字格认证
论坛元老   /  发表于:2025-6-2 21:37:38
3#
本帖最后由 amtath 于 2025-6-2 22:00 编辑
二麻子 发表于 2025-6-1 22:50
基础样式,加上一个装饰样式即可生效


这是我的弹窗控制,
没出效果。被遮住了。

  1. #fgc-popup-dialog {
  2.   border-radius: 6px !important;
  3.   overflow: hidden;
  4.   position: relative;

  5. }   

  6. #fgc-popup-dialog::before {
  7.   content: '';
  8.   position: absolute;
  9.   left: -5px;
  10.   top: 50%;
  11.   transform: translateY(-50%);
  12.   width: 0;
  13.   height: 0;
  14.   border-top: 10px solid transparent;
  15.   border-bottom: 10px solid transparent;
  16.   border-right: 10px solid #ad0d0d;
  17.   z-index: 2; /* 确保高于弹窗内容 */
  18. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Nathan.guo活字格认证 Wyn认证
超级版主   /  发表于:2025-6-3 17:21:34
5#
感谢各位大佬的支持~~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部