Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Is it possible for a user to select text on a web page using a mobile browser?

Is it possible for a user to select text on a web page using a mobile browser? With the CSS property "user-select: all" the whole text will be highlighted, but I also want to allow selecting specific words without assigning the property everywhere. See the code example below in order to see what I tried so far.

.all {
  -moz-user-select: all;
  -webkit-user-select: all;
  -ms-user-select: all;
  user-select: all;
}
<p>You should be able to select this text.</p>
<p class="all">Clicking once will select all of this text.</p>

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Is it possible for a user to highlight text on a web page using a mobile browser?

Yes, if you navigate to the Mozilla page for user-select on your mobile device, you can see it in action. There's also a list of compatibility across browsers: https://developer.mozilla.org/en-US/docs/Web/CSS/user-select

Alternatively, I tried running this in Firefox' responsive design mode using the touch simulation featur and "touching" the bottom text (with the "all" class applied) produces the same effect as clicking it on the desktop.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda