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

html 的 checkbox 有部分选择状态?

  •  
  •   ddyy · May 13, 2014 · 3538 views
    This topic created in 4369 days ago, the information mentioned may be changed or developed.
    刚在phpmyadmin看到的,震惊了
    7 replies    2014-05-13 17:37:38 +08:00
    lingyired
        1
    lingyired  
       May 13, 2014
    js + icon
    sneezry
        2
    sneezry  
       May 13, 2014   ❤️ 1
    有,checkbox的indeterminate属性
    rannnn
        3
    rannnn  
       May 13, 2014 via iPhone   ❤️ 2
    @lingyired checkbox.indeterminate = true
    ddyy
        5
    ddyy  
    OP
       May 13, 2014
    今天彻底震惊了,接触html满打满算11年了,今天刚发现这个特性
    lingyired
        6
    lingyired  
       May 13, 2014
    @rannnn thanks
    chemzqm
        7
    chemzqm  
       May 13, 2014   ❤️ 1
    The :indeterminate CSS pseudo-class represents any <input type="checkbox"> element whose indeterminate DOM property is set to true by JavaScript. In addition, in some browsers, it can be used to match to <progress> elements in an indeterminate state

    ie要10才支持,不过不支持也没啥影响
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3233 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 11:57 · PVG 19:57 · LAX 04:57 · JFK 07:57
    ♥ Do have faith in what you're doing.