IFRAME to the border, no border, use Daquan

Source: Internet
Author: User

<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", it is best to add IFRAME to jump to Asp.net to jump to the current IFRAME

URL of the SRC Link

Whether frameborder displays a border (0 without a border 1 with a border)

Whether scrolling has a scroll bar (yes, there is a scroll bar no, there is no scroll bar)

Whether the allowtransparency background is transparent (Yes transparent no transparent)

IFRAME is not very common and is rarely used in standard web pages. It is appropriate to interpret IFRAME as "a browser in a browser. <IFRAME> is also a form of framework. Unlike <frame>, IFRAME can be embedded in any part of the webpage. 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 the embedded Cabinet
Name = Name of the CDATA embedded Cabinet
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 blank width
Marginheight = the height of the pixels up and down
Scrolling = [Yes | no | auto] flow bar (Yes force display | no never display | auto automatic)

The format of the IFRAME tag is:
<IFRAME src = "url" width = "X" Height = "X" scrolling = "[Option]" frameborder = "X" name = "Main"> </iframe>
SRC: file path, which can be either an HTML file or a text file or an ASP file;
Width and 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 scroll option is displayed. If it is set to no, no scroll bar is displayed. If it is set to Auto:, the scroll bar is automatically displayed; if yes, it is displayed;
Frameborder: The Border width of the area. To enable the "Internal Frame" to combine with the adjacent content, it is usually set to 0.
Name: Framework name, used for identification.

<IFRAME> it is used to set floating text boxes or containers for text or graphics.

Border
<IFRAME border = "3"> </iframe>
Set the edge width around the text box

Frameboder
<IFRAME frameboder = "0"> </iframe>
Set whether or not the border is 3-dimensional (0 = No, 1 = yes)

Height, width
<IFRAME Height = "31" width = "88"> </iframe>
Set the Border width and height

Scrolling
<IFRAME scrolling = "no"> </iframe>
Whether there is a scroll bar (yes, no, auto)

SRC
<IFRAME src = "girl.gif"> </iframe>
Specify the file or image called by IFRAME (HTML, htm, GIF, JPEG, JPG, PNG, txt ,*.*)

Note:
A floating framework 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 frameworks.
In the strict html4.01 specification, the <IFRAME> element is not defined. The floating frame can be simulated using the <div> element and CSS positioning method.

Floating frame flag IFRAME attributes:

1. File Location:
Syntax: src = URL
Note: The URL is the location of the embedded HTML file. It can be a relative address or an absolute address.
Example: <IFRAME src = "iframe.html">


2. Object Name:
Syntax: Name = #
Note: # Is the object name. This attribute is used to name an object so that other objects can use it.
Example: <IFRAME src = "iframe.html" name = "iframe1">

 
3. ID selector:
Syntax: Id = #
Specifies the unique ID selector of 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. The value is a positive integer (in pixels) or percentage.
Height: Specifies the height of the floating frame;
Width: Specify the width of the floating frame.
Example: <IFRAME src = "iframe.html" Height = 400 width = 400>


5. size adjustment:
Syntax: noresize
Description: Private Attribute of IE. The size of a floating frame cannot be adjusted.
Example: <IFRAME src = "iframe.html" noresize>

6. Border display:
Syntax: frameborder = 0, 1
Note: This attribute specifies whether the floating frame border is displayed.
0: The floating frame border is not displayed;
1: displays the floating frame border.
Example: <IFRAME src = "iframe.html" frameborder = 0>
<IFRAME src = "iframe.html" frameborder = 1>


7. Border thickness:
Syntax: border = #
Description: This attribute specifies the thickness of the floating frame border. The value is a positive integer and 0, in pixels. 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 attribute specifies the color of the floating frame border. Color can be 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 the alignment between floating frames and other objects.
Left: left;
Right: 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 attribute specifies the spacing between adjacent floating frames. The values are positive integers and 0 in pixels.
Example: <IFRAME src = "iframe.html" framespacing = 10>

 
11. Inner whitelist attributes:
Syntax: hspace = # vspace = #
Description: This attribute specifies the boundary size within a floating frame. The values are positive integers and 0 in pixels. Both attributes should be applied at the same time.
Hspace: the size of the left and right boundary within a floating frame;
Vspace: the size of the upper and lower boundary within a floating frame.
Example: <IFRAME src = "iframe.html" hspace = 1 vspace = 1>


12. External whitelist attributes:
Syntax: marginheight = # marginwidth = #
Description: This attribute specifies the boundary size of floating frames. The values are positive integers and 0 in pixels. Both attributes should be applied at the same time.
Marginheight: the size of the left and right boundary of the floating frame;
Marginwidth: the upper and lower boundary size of floating frames.
Example: <IFRAME src = "iframe.html" marginheight = 1 marginwidth = 1>

IFRAME to the border, no border, use Daquan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.