ddyy

html 的 checkbox 有部分选择状态?

  •  
  •   ddyy · May 13, 2014 · 3620 views
    This topic created in 4392 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   ·   3881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 00:12 · PVG 08:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.