V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
infinte
V2EX  ›  CSS

把没有前缀的 border-radius 和 box-shadow 加上,好吗?

  •  
  •   infinte · Feb 9, 2011 · 7330 views
    This topic created in 5569 days ago, the information mentioned may be changed or developed.
    :css
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;

    大量这样的代码实在是很…… 把没前缀的加上,好么?
    5 replies    1970-01-01 08:00:00 +08:00
    heckthisplace
        1
    heckthisplace  
       Feb 9, 2011
    什么意思?
    infinte
        2
    infinte  
    OP
       Feb 10, 2011
    比如有一条


    .sl {
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    padding: 3px;
    font-size: 14px;
    border: 1px solid #ccc;
    width: 320px;
    font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", STHeiti !important;
    }

    border-radius 建议加上没有前缀的版本(border-radius: 3px)来优化 opera和 ⑨ 下的效果
    heckthisplace
        3
    heckthisplace  
       Feb 10, 2011
    最好兼顾。
    yyfearth
        4
    yyfearth  
       Feb 10, 2011
    我一般都是:
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    多整齐~!
    ilexswam
        5
    ilexswam  
       Feb 10, 2011
    opera似乎只支持border-radius,而不支持border-top-left-radius之类的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1239 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 102ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
    ♥ Do have faith in what you're doing.