Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Cómo deshabilitar iframe para que no se resalte

Cuando hago doble clic en el fondo blanco, el iframe se resalta, ¿cómo lo deshabilito a través de css?

https://jsfiddle.net/516y29ka/

Para reproducir, haga doble clic con el mouse en el fondo blanco y verá que el iframe se resalta.

¿Cómo se deshabilita eso a través de css?

 <iframe width="642" height="361" src="https://www.youtube.com/embed/M7lc1UVf-VE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Usar user-select: none; en el marco flotante.

 <!DOCTYPE html> <head> <style> .video-frame { user-select: none; } </style> <body> <iframe class="video-frame" width="642" height="361" src="https://www.youtube.com/embed/M7lc1UVf-VE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </body> </html>

Es compatible con casi todos los navegadores: https://caniuse.com/?search=user-select
Para obtener más información, consulte las especificaciones: https://www.w3.org/TR/2021/WD-css-ui-4-20210316/#propdef-user-select

over 4 years ago · Santiago Trujillo Report

0

Use user-select y configúrelo en none Para evitar problemas de compatibilidad, agregue prefijos de proveedores: -webkit- -ms- -moz- -o-

 .video-frame { user-select: none; -webkit-user-select: none; -ms-user-select: none; -moz-user-select: none; -o-user-select: none; }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!