V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Can I use?
http://caniuse.com/
Less
http://lesscss.org
Cool Libraries
Bootstrap from Twitter
Jetstrap
atfeel
V2EX  ›  CSS

谁知道如何使用 css,实现这样的下圆弧效果?

  •  
  •   atfeel · 318 天前 · 1143 次点击
    这是一个创建于 318 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家好,如图这样的下圆弧效果是怎么做出来的呢? CSS 还是图片呢?

    7 条回复    2023-06-14 20:47:07 +08:00
    iMusic
        1
    iMusic  
       318 天前
    1145148964
        2
    1145148964  
       318 天前
    <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">0% 0% 50% 50% / 0% 0% 10% 10%</font></font>
    atfeel
        3
    atfeel  
    OP
       318 天前
    厉害啊,哥哥
    LeegoYih
        4
    LeegoYih  
       318 天前
    https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
    试试这个
    border-radius: 50% / 10%;
    border-top-left-radius:0;
    border-top-right-radius:0;
    atfeel
        5
    atfeel  
    OP
       318 天前
    不过,如果是固定的尺寸能用这个方法,似乎对于不同的手机分辨率,就行不通了
    learnshare
        6
    learnshare  
       318 天前
    圆的宽度用屏幕宽度的 4~6 倍
    atfeel
        7
    atfeel  
    OP
       318 天前

    可以了非常感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2808 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:03 · PVG 23:03 · LAX 08:03 · JFK 11:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.