IFRAME is widely used. There are two common requirements:
1. To obtain the IFRAME effect, a scroll bar is provided, saving a lot of layout.
2. embed a page to implement the Framework link.
If you cannot use IFRAME, you can use the following solutions:
The first requirement is implemented by using CSS layout, that is, one page can be missing or the efficiency can be improved.
The second requirement can be obtained remotely using XMLHTTP.
A. Directly simulate IFRAME
Use layer as container
# Content {overflow: auto; Height: 200px; width: 600px; Background: # f00 ;}
Effect demonstrationSource code:Xmlns = "http://www.w3.org/1999/xhtml">
Use CSS to build IFRAME results
From: webpage tutorial Network
A. Directly simulate IFRAME and use layer as container
· Use CSS to write unlimited levels of pop-up menus
· Summary of browser scroll bar Parameters
· Introduction to four CSS style sheets
· Vertical text la s in two ways
· 40 cases of advanced layout in Webpage Design
· Understand W3C standards and Ajax from Gmail