search

Home  >  Q&A  >  body text

javascript - Chrome triggers the click event to select the text next to it

As shown in the picture, if you need to make a selection effect, just click on the box toggleclass to change the style. It turns out that if you click the mouse quickly, the text next to it will be selected. The language description is not clear, so let’s look at the picture:

Just click on part of the frame to change the background, but if you click quickly, the one next to it will also be selected

怪我咯怪我咯2804 days ago987

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-18 10:52:08

    You need to post your code so that you can clearly know how to click to trigger it

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-18 10:52:08

    user-select:none你给他加上这个样式你试试

    reply
    0
  • Cancelreply