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

contenteditable = true 中 放入 contenteditable = false 的元素之后,光标飘到最右边,什么原因?

  •  
  •   liujia965057396 · Aug 8, 2019 · 3002 views
    This topic created in 2454 days ago, the information mentioned may be changed or developed.

    contenteditable = true 中 放入 contenteditable = false 的元素。在手机端上看的时候 光标是飘在输入框最后的,但是字的内容其实很短。在 span 后面再写一个字光标恢复正常。请问大家知道这个应该怎么解决吗?

    1 replies    2021-02-19 17:31:24 +08:00
    erwin985211
        1
    erwin985211  
       Feb 19, 2021
    挖坟,遇到同一个问题。解决办法是说服产品换一种实现方式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1217 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:28 · PVG 07:28 · LAX 16:28 · JFK 19:28
    ♥ Do have faith in what you're doing.