推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
humbass

Vant 这个地址栏彩色线条是怎么来的?

  •  
  •   humbass · Nov 27, 2023 · 1784 views
    This topic created in 924 days ago, the information mentioned may be changed or developed.

    偶然需要一个简单地址,照搬 Vant 界面,发现 Border Bottom 位置有一条彩色间隔,请教间隔是怎么实现的?

    截图 https://mautic.ld160.eu.org/static/Jietu20231127-050502.png Vant 链接 https://vant-contrib.gitee.io/vant/v2/#/zh-CN/contact-card

    1 replies    2023-11-27 17:17:57 +08:00
    dumbass
        1
    dumbass  
       Nov 27, 2023   ❤️ 1


    .van-contact-card::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: -webkit-repeating-linear-gradient(135deg, #ff6c6c 0, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0, #1989fa 45%, transparent 0, transparent 50%);
    background: repeating-linear-gradient(-45deg, #ff6c6c 0, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0, #1989fa 45%, transparent 0, transparent 50%);
    background-size: 80px;
    content: '';
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1088 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:58 · PVG 06:58 · LAX 15:58 · JFK 18:58
    ♥ Do have faith in what you're doing.