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

搜索输入框,字数限制,太小了吧。

  •  
  •   lxk11153 · Aug 5, 2020 · 2737 views
    This topic created in 2091 days ago, the information mentioned may be changed or developed.
    <form action="https://www.google.com" onsubmit="return dispatch()" target="_blank">
      <div id="qbar" class="">
        <input type="text" maxlength="40" name="q" id="q" value="" onfocus="$('#qbar').addClass('qbar_focus')" onblur="$('#qbar').removeClass('qbar_focus')" />
      </div>
    </form>
    

    我搜 OmniboxUIExperimentHideSteadyStateUrlTrivialSubdomains 就被截断了

    3 replies    2020-08-05 15:46:35 +08:00
    taxiaohaohhh
        1
    taxiaohaohhh  
       Aug 5, 2020
    input 设置了 maxlength,所以最大字符数 40
    weixiangzhe
        2
    weixiangzhe  
       Aug 5, 2020
    字数太长反而会搜不到东西吧
    Livid
        3
    Livid  
    MOD
    PRO
       Aug 5, 2020
    收到,会调整到和 Google 自身的限制一样的长度。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5363 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:21 · PVG 09:21 · LAX 18:21 · JFK 21:21
    ♥ Do have faith in what you're doing.