A complete set of using iframes without borders

Time:2020-10-17

<iframe src=”you page’s url” width=”100″ height=”30″ 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 better to add iframe jump asp.net Jump in current iframe
URL to which SRC links
Whether frameBorder displays borders (0 without borders, 1 with borders)
Whether scrolling has scroll bar (yes with scroll bar no scroll bar)
Whether the background of allowtransparency is transparent (yes transparent no opaque)
Iframe is not very common and is rarely used in standard web pages. It is appropriate to interpret iframe as “browser in browser”. < iframe > should also be a form of framework. Unlike < frame >, 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
Name = name of CDATA embedded rack
Longdesc = URI description
Width = length width
Height = length height
Align = [top | middle | bottom | left | right] alignment
FrameBorder = [1 | 0] cabinet frame
Marginwidth = left and right clearance width of pixels
Marginheight = the height of the upper and lower clearance of pixels
Scrolling = [yes | no | auto] flow bar (yes forced display | no never display | auto)
The format of iframe tag is as follows:
<Iframe src=”URL” width=”x” height=”x” scrolling=”[OPTION]” frameborder=”x” name=”main”></iframe>
SRC: the path of the file, which can be HTML file, text, ASP, etc;
Width and height: the width and height of “inner frame” area;
Scrolling: when the specified HTML file of SRC cannot be displayed in the specified area, the scrolling option will not appear if it is set to no; if it is auto, the scroll bar will appear automatically; if yes, it will be displayed;
FrameBorder: the width of the area border, which is often set to 0 in order to blend the “inner frame” with the adjacent content.
Name: the name of the frame to identify.
< iframe > a floating frame or container for setting text or graphics.
border
<iframe border=”3″></iframe>
Sets the width of the edge around the frame
frameboder
<iframe frameboder=”0″></iframe>
Set border to 3D (0 = no, 1 = yes)
height,width
<iframe height=”31″ width=”88″></iframe>
Set the width and height of the border
scrolling
<iframe scrolling=”no”></iframe>
Whether there is scroll bar (yes, no, auto)
src
<iframe src=”girl.gif”></iframe>
Specifies the file or image (HTML, HTM, GIF, JPEG, JPG, PNG, TXT, *. *) called by iframe

matters needing attention:

A floating frame does not need to be declared as part of the framework settings through the < frameset > element;
WebTV and Netscape 4. X (4.0 to 4.75) do not support floating frames.
In the html4.01 strict specification, the < iframe > element is not defined. Floating frameworks can be implemented using < div > elements and CSS positioning methods.

Floating frame mark iframe attributes:

1. File location:
Syntax: SRC = URL
Note: 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 names the object so that other objects can use it.
Example: < iframe SRC=“ iframe.html ” name=”iframe1″>

3. ID selector:
Syntax: ID=#
Description: Specifies the unique ID selector for the tag.
Example: < iframe SRC=“ iframe.html ” id=”iframe1″>

4. Container properties:
Syntax: height = width=#
Description: this attribute specifies the height and width of the floating frame. Values are positive integers (in pixels) or percentages.
Height: Specifies 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:
Grammar: noResize
Note: ie specific attribute, the floating frame can not be adjusted.
Example: < iframe SRC=“ iframe.html ” noresize>

6. Border display:
Frame = 1
Description: this attribute specifies whether the floating frame border is displayed.
0: do not display floating frame border;
1: Displays the floating frame border.
Example: < iframe SRC=“ iframe.html ” frameborder=0>
<iframe src=”iframe.html” frameborder=1>

7. Border thickness:
Grammar: Border=#
Description: this attribute specifies the thickness of the floating frame border. The values are positive integer and 0, and the unit is pixel. In order to seamlessly combine floating frames and pages, border is generally equal to 0.
Example: < iframe SRC=“ iframe.html ” border=1>

8. Border color:
Syntax: bordercolor = color
Description: this attribute specifies the color of the floating frame border. Color can be either an RGB color (rrggbb) or a color name.
Example: < iframe SRC=“ iframe.html ” bordercolor=red>

9. Alignment:
Syntax: align = left, right, center
Description: this attribute specifies how the floating frame aligns with other objects.
Left: stay on the left;
Right: stay 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: Framing=#
Description: this attribute specifies the spacing between adjacent floating frames. Values are positive integers and 0 in pixels.
Example: < iframe SRC=“ iframe.html ” framespacing=10>

11. Inner filling properties:
Syntax: hspace = ා vSpace=#
The size of the floating frame specifies the size of the boundary. Values are positive integers and 0 in pixels. Both properties should be applied at the same time.
Hspace: the size of left and right boundary in floating frame;
VSpace: the size of the upper and lower boundaries within the floating frame.
Example: < iframe SRC=“ iframe.html ” hspace=1 vspace=1>

12. Complement properties:
Syntax: marginheight = ා marginwidth=#
Description: this attribute specifies the boundary size of the floating frame. Values are positive integers and 0 in pixels. Both properties should be applied at the same time.
Margin height: the left and right boundary size of floating frame;
Margin width: the size of the upper and lower boundaries of the floating frame.
Example: < iframe SRC=“ iframe.html ” marginheight=1 marginwidth=1>