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

146
Visualizações
Display/hide CSS when using HTML2Canvas

Is it possible to show hidden text on a html2canvas "screenshot"?

Let's say I have <p style="display:none;">Some random text</p>. Can this be hidden on the page as a default, but display when you press the button to download the div?

Also - is it possible to go the other way around aswell? Is it possible to hide CSS styles of an item instead of removing the entire item itself using the data-html2canvas-ignore? Let's say I have a code such as this one: <input style="border:solid; background:blue;">Display this input</input>. Is it possible to display the text of the input, but hide the style when using html2canvas?

     $( "#download" ).on( "click", function() {
      html2canvas(document.querySelector("#to_save")).then(canvas => {
        canvas.toBlob(function(blob) {
          window.saveAs(blob, 'Oversikt.png');
        });
        });
    });

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