• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

iframe CSS Eigenschafften zuweisen

Status
Für weitere Antworten geschlossen.

psychedelic

Neues Mitglied
Hallo,

wie kann ich über meine Seite :

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Textfeld</title>

      <script type="text/javascript">
            
            function start(){
            
                  document.getElementById("textfeld").contentDocument.designMode = "on";
                  
            }
      
      </script>
      
      <style type="text/css">
        
            .rahmen{
            border:#CCCCCC 1px solid;
            width:400px;
            height:100px;
            }
        
      </style>
      
</head>

<body onload="start()">
      
      <table>
            <tr>
                  <td>
                  <!--
                        <button>B</button>
                        <button>I</button>
                        <button>U</button>
                  -->
                  </td>
            </tr>
            <tr>
                  <td>
                        <div class="rahmen">
                              <iframe id="textfeld" marginheight="0px" marginwidth="0px" width="400px" height="100px" frameborder="0"></iframe>
                        </div>
                  </td>
            </tr>
      </table>
      
</body>
</html>

Dem iframe folgende CSS Eigenschafften zuweisen:
HTML:
p{
margin:0px;
padding:0px;
}

:?:
 
Werbung:
Status
Für weitere Antworten geschlossen.
Zurück
Oben