How to hide a div that is inside an iframe

Asked

Viewed 46 times

1

How can I remove/hide a div that is inside a site on iframe, using a class to identify the div, as it does not have an id.

Example of a code:

<html lang="pt-br">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Teste de Código</title>
    <style>
        *, *::before, *::after{margin: 0; padding: 0;}
    </style>

</head>

<body>

    <IFRAME id="framesrc" src="http://earth.cinego.unaux.com/teste.php" sandbox="allow-forms allow-pointer-lock allow-same-origin allow-scripts allow-top-navigation" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO  style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:101%;width:100%;position:fixed;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></IFRAME>


</body>
</html>

Inside this site that will load on iframe there is a div with the class jw-logo, I need this div remain hidden, using the class to identify the div.

  • Please try to [Edit] your question to add a minimal, complete and verifiable example. Learn more here and here.

  • @Luizfelipe made the correction and added an example of code.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.