[Vuejs]-In Nuxt 3, how to enable highlight on page content?

0👍

This behaviour is likely due to the css rule user-select: none;.

To check if your text element has it, follow these steps:

  1. Open the browser devtools console, "Elements" tab to inspect the dom.
  2. Select any text element you want to highlight but you can’t
  3. Make a search on this element’s applied css (on the "Styles" tab) with user-select.
  4. Check if this element has a user-select: none; applied (directly or inherited).
  5. Try to remove that rule from your css.

Leave a comment