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

192
Views
¿Por qué el iframe no ocupa toda la página?

Estoy tratando de hacer que https://vscode.dev/ aparezca y ocupe toda la página cuando hago clic en el icono, pero parece que solo ocupa la parte superior de la página. ¿Cómo puedo arreglar esto?

 var div = document.getElementById("content"); while(div.firstChild) { div.removeChild(div.firstChild); } document.getElementById("vscode").height = "100%"; document.getElementById("vscode").width = "100%"; }```
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Los elementos no tienen una altura del 100 % de forma predeterminada y los elementos secundarios dependen de la altura principal.

Por lo tanto, debe establecer la altura de los padres, incluidos los elementos html y body , en una altura del 100% si desea que un niño tenga una altura del 100%.

 html, body { margin: 0; padding: 0; width: 100%; height: 100%; } #vscode { width: 100%; height: 100%; border:0 }
 <iframe src="https://vscode.dev/" id="vscode"/>

Además, podría usar 100vh

about 4 years ago · Juan Pablo Isaza 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!