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

CSS 选择器有「定时」功能吗?

  •  
  •   iugo ·
    iugo · 2015-03-10 11:41:23 +08:00 · 3321 次点击
    这是一个创建于 3340 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如有个
    :timeout(value)
    这样的东西.

    例子:
    .name:timeout(10s)
    选择 10s 后的 .name

    如果没有, 只能写 JavaScript 了是吗?
    3 条回复    2015-03-11 15:11:21 +08:00
    zdhxiong
        1
    zdhxiong  
       2015-03-10 11:48:57 +08:00 via Android
    可以用transition-delay
    jimwoo
        2
    jimwoo  
       2015-03-10 11:57:32 +08:00   ❤️ 1
    @zdhxiong transition-delay 只是过渡的延迟吧???


    @iugo 只能写JS!
    otakustay
        3
    otakustay  
       2015-03-11 15:11:21 +08:00
    用animate,第10秒切到新的样式。但不能改class
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2301 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.