• 请不要在回答技术问题时复制粘贴 AI 生成的内容
firhome
V2EX  ›  程序员

请教一下,html 有没有办法在手机上做那种区域选择?

  •  
  •   firhome · Jun 5, 2014 · 3748 views
    This topic created in 4536 days ago, the information mentioned may be changed or developed.
    做手机端的html页面,默认的select控件只能单选。


    要做的像iphone里的闹钟,左边选小时 右边选分钟


    ------------->

    上海 区域
    北京 区域


    左侧点城市 右侧自动关联区域。

    html默认的标签可以实现吗、? 不能的话 只能分两个select了
    4 replies  •  2014-06-05 11:42:34 +08:00
    learnshare
    learnshare
    Jun 5, 2014
    1
    不能实现,需要自己关联两个 select 的行为
    wizaliu
    wizaliu
    Jun 5, 2014
    2
    我们就自己写了这么一个
    firhome
    firhome
    OP
    Jun 5, 2014
    3
    @wizaliu 兼容性有问题么?是用js模拟?
    chairuosen
    chairuosen
    Jun 5, 2014
    4
    input[type=date] // 原生date picker
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 02:19 · PVG 10:19 · LAX 18:19 · JFK 21:19
    ♥ Do have faith in what you're doing.