Use css to replace iframe : iframe « Tags « HTML / CSS






Use css to replace iframe

   

<!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></title>
<style type="text/css" media="Screen">
#internal {
    width: 200px;
    height: 100px;
    background: #999999;
    overflow: auto;
}
</style>
</head>
<body>
    <div id="internal">
        <p>this is a test. this is a test. this is a test. this is a test. 
        this is a test. this is a test. this is a test. this is a test. 
        this is a test. this is a test. this is a test. this is a test. 
        this is a test. this is a test. this is a test. this is a test. </p>
    </div>
</body>
</html>

   
    
  








Related examples in the same category

1.'iframe' identifies a frame that can be placed anywhere inside a document
2.iframe style
3.An inline frame
4.target="iframe"
5.'allowtransparency' creates the transparent frames
6.'scrolling' sets whether a frame should have a scroll bar or not
7.'security' sets whether the source file has security restrictions