<iframe src=test.jsp width=100″ height=50″ frameborder=no border=0″ marginwidth=0″ marginheight=0″ scrolling=no allowtransparency=yes></iframe>
<iframe runat=server src=you page's url width=750 height=30 frameborder=no border=0 marginwidth=0 marginheight=0 scrolling=no allowtransparency=yes></iframe>
runat=server This is best to add Iframe to jump asp.net to jump in the current iframe.
src link to address URl
frameborder Whether to display borders (0 without borders 1 with borders)
scrolling Is there a scroll bar (yes has a scroll bar no scroll bar)
allowtransparency is the background transparent (yes transparent no opaque)
Iframes are not very commonly used and are rarely used in standard web pages. It is appropriate to interpret an iframe as a browser in the browser. <iframe> should also be a form of a framework. Unlike <frame>, an iframe can be embedded in any part of a web page. For example:
<iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src=move-ad.htm></iframe>
SRC=URI Page file path of embedded cabinet shelf
NAME=CDATA The name of the embedded cabinet shelf
LONGDESC=URI Description
WIDTH=Length Width
HEIGHT=Length Height
ALIGN=[ top | middle | bottom | left | right ] Alignment
FRAMEBORDER=[ 1 | 0 ] Cabinet frame
MARGINWIDTH=Pixels left and right vacant width
MARGINHEIGHT=Pixels The height of the upper and lower vacancy
SCROLLING=[ yes | no | auto ] Flow bar (yes forced to display | no never display | auto auto)
The usage format of Iframe tags is:
<Iframe src=URL width=x height=x scrolling=[OPTION] frameborder=x name=main></iframe>
src: The path to the file, which is either an HTML file, or text, ASP, etc.;
width, height: the width and height of the internal frame area;
scrolling: When the specified HTML file of SRC is not displayed in the specified area, the scrolling option. If it is set to NO, no scroll bar will appear; if it is Auto: the scroll bar will automatically appear; if it is Yes, it will be displayed;
FrameBorder: The width of the area border, which is often set to 0 in order to allow the internal frame to blend with adjacent content.
name: The name of the frame, used for identification.
<iframe>Floating frames or containers for text or graphics.
border
<iframe border=3></iframe>
Set the edge width around the frame
frameboder
<iframe frameboder=0></iframe>
Set the border to be 3-dimensional (0=No, 1=Yes)
height,width
<iframe height=31 width=88></iframe>
Set the width and height of the textured border
scrolling
<iframe scrolling=no></iframe>
Is there a scrollbar (yes,no,auto)
src
<iframe src=girl.gif></iframe>
Specify the file or image of the iframe call (html,htm,gif,jpeg,jpg,png,txt,*.*)
Notes:
A floating frame does not need to be declared as part of the frame settings via the <frameset> element;
WebTV and Netscape 4.x (4.0 to 4.75) do not support floating frameworks.
In the HTML4.01 strict specification, the <iframe> element is not defined. The floating framework can use <div> elements and CSS positioning methods to mimic the implementation.
Floating frame marks the properties of the Iframe:1. File location:
Syntax: src=url
Description: The url is the location of the embedded HTML file, which can be a relative address or an absolute address.
Example: <iframe src=iframe.html>
2. Object name:
Syntax: name=#
Description: # is the name of the object. This property gives the object a name for other objects to use.
Example: <iframe src=iframe.html name=iframe1>
3. ID selector:
Syntax: id=#
Description: Specify the unique ID selector for this tag.
Example: <iframe src=iframe.html id=iframe1>
4. Container properties:
Syntax: height=# width=#
Description: This property specifies the height and width of the floating frame. Take the value as a positive integer (in pixels) or a percentage.
height: Specify the height of the floating frame;
width: Specifies the width of the floating frame.
Example: <iframe src=iframe.html height=400 width=400>
5. Size adjustment:
Syntax: noresize
Description: IE proprietary attribute, specifying that floating frames cannot be resized.
Example: <iframe src=iframe.html noresize>
6. Border display:
Syntax: frameborder=0, 1
Description: This property specifies whether to display floating frame borders.
0: The floating frame border is not displayed;
1: Display floating frame border.
Example: <iframe src=iframe.html frameborder=0>
<iframe src=iframe.html frameborder=1>
7. Border thickness:
Syntax: border=#
Description: This property specifies the thickness of the floating frame border, with the values as positive integers and 0, and the units are pixels. In order to seamlessly combine floating frames with pages, border is generally equal to 0.
Example: <iframe src=iframe.html border=1>
8. Border color:
Syntax: bordercolor=color
Description: This property specifies the color of the floating frame border. The color can be RGB color (RRGGBB) or the color name.
Example: <iframe src=iframe.html bordercolor=red>
9. Alignment method:
Syntax: align=left, right, center
Description: This property specifies how floating frames align with other objects.
left: on the left;
right: on the right;
center: center.
Example: <iframe src=iframe.html align=left>
<iframe src=iframe.html align=right>
<iframe src=iframe.html align=center>
10. Adjacent spacing:
Syntax: framespacing=#
Description: This property specifies the spacing between adjacent floating frames. The values are positive integers and 0, and the units are pixels.
Example: <iframe src=iframe.html framespacing=10>
11. Internal filling attributes:
Syntax: hspace=# vspace=#
Description: This property specifies the boundary size within the floating frame. The values are positive integers and 0, and the units are pixels. Both properties should be applied at the same time.
hspace: the left and right boundary size within the floating frame;
vspace: The size of the upper and lower boundary within the floating frame.
Example: <iframe src=iframe.html hspace=1 vspace=1>
12. External filler attributes:
Syntax: marginheight=# marginwidth=#
Description: This property specifies the boundary size of the floating frame. The values are positive integers and 0, and the units are pixels. Both properties should be applied at the same time.
marginheight: the left and right boundary size of the floating frame;
marginwidth: The upper and lower boundary size of the floating frame.
Example: <iframe src=iframe.html marginheight=1 marginwidth=1>