对于::after为元素的样式调整

ul:

  1. position: relative;
  2. padding-right: 0.5rem;

li::after:

  1. display: block; */

  2. content: '';

  3. float: right;

  4. border: 2px solid #191F39;

  5. border-top: 0;

  6. border-left: 0;

  7. width: 6px;

  8. height: 6px;

  9. transform: rotate( -45deg

    );

  10. -webkit-transform: rotate( -45deg

    );

  11. -moz-transform: rotate(-45deg);

  12. -ms-transform: rotate(-45deg);

  13. -o-transform: rotate(-45deg);

  14. margin-top: .1333333333rem;

  15. content: '';

  16. position: absolute;

  17. right: 0;

  18. /* top: 50%; */

  19. /* transform: translateY(-50%);

复制代码
        float: right;
        border: 2px solid #191F39;
        border-top: 0;
        border-left: 0;
        width: 6px;
        height: 6px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        margin-top: .1333333333rem;
        content: '';
        position: absolute;
        right: 0;
        /* top: 50%; */
        /* transform: translateY(-50%);

![](https://i-blog.csdnimg.cn/direct/df9c921cd390482ab1a7cf82ba907b4b.png)
相关推荐
Csvn1 天前
CSS :has() 选择器实战:没有它之前我们写了多少冗余 JS
前端·css
用户059540174462 天前
大模型长上下文遗忘排查实录:用 Playwright 自动化测试,揪出了 90% 的存储序列化 bug
前端·css
天蓝色的鱼鱼3 天前
关于 CSS 你可能不知道的属性,但关键时刻很有用
前端·css
用户059540174463 天前
向量库静默丢数据踩坑实录:Playwright 端到端测试让我排查了72小时
前端·css
ZhengEnCi4 天前
Q06-导航按钮高级拟态玻璃效果构建完全指南
前端·css
用户059540174464 天前
Redis持久化踩坑实录:这个数据丢失Bug让我排查了6小时
前端·css
用户059540174465 天前
Redis记忆存储故障恢复测试踩坑实录:手动测试让我漏掉了2个一致性Bug
前端·css
用户059540174465 天前
用了3年Mock,才发现Redis记忆存储的测试一直漏掉了60%的边界场景
前端·css
用户059540174466 天前
用了6个月LangChain,才发现AI Agent的记忆存储一直有坑——写了23个Pytest用例才彻底修好
前端·css
用户059540174466 天前
把LLM记忆测试从手工脚本换成Pytest参数化,回归时间从2小时降到10分钟
前端·css