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

135
Views
Cómo agregar una extensión de Chrome en la parte superior de la ventana sin ocultar parte del contenido de la página actual

Traté de agregar la extensión por iframe como se describe aquí: . Luego agregué padding en la parte superior del cuerpo del documento ( documnent.body ) Pero en algunas páginas hay un navegador/barra de menú con position: "fixed" que este truco no funciona. En otras palabras, el iframe oculta el navegador/barra de menú que permanece en la misma ubicación ). ¿Puedo capturar este "encabezado" o navegador de posición fija y editarlo? O hay alguna otra forma de ejecutarlo.

 var iframe = document.createElement('iframe'); iframe.style.background = "#c2e9fb"; iframe.style.height = "0px"; iframe.style.width = "100%"; iframe.style.position = "fixed"; iframe.style.top = "0px"; iframe.style.right = "0px"; iframe.style.zIndex = "9000000000000000000"; iframe.frameBorder = "none"; iframe.src = chrome.extension.getURL("index.html") document.body.appendChild(iframe); function toggle(url) { let isClosed = iframe.style.height === "0px" iframe.style.height = isClosed ? "300px" : "0px" document.body.style.paddingTop = isClosed ? "300px" : "0px" }
about 4 years ago · Juan Pablo Isaza
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!