Iframe border removal, no border use Daquan (practical experience) _ HTML/Xhtml _ web page creation

Source: Internet
Author: User
Iframe is common in actual application. This article provides several tips for using iframe. For more information, see


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.
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:

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.

Set the edge width around the text box
Frameboder

Set whether or not the border is 3-dimensional (0 = No, 1 = yes)
Height, width

Set the Border width and height
Scrolling

Whether there is a scroll bar (yes, no, auto)
Src

Specify the file or image called by iframe (html, htm, gif, jpeg, jpg, png, txt ,*.*)

Note:

A floating frame does not need to passElement declaration is part of the framework settings;
WebTV and Netscape 4.x( 4.0 to 4.75) do not support floating frameworks.
In strict HTML4.01 specifications, The element is not defined. The floating frame can be simulated using the <p> element and CSS positioning method. <Br/> <strong> floating frame flag Iframe attributes: </strong> <br/> <strong> 1. File Location: </strong> <br/> Syntax: src = url <br/> Description: The url is the location of the embedded HTML file. It can be a relative or absolute address. <Br/> example: <iframe src = "iframe.html"> <br/> <strong> 2. Object Name: </strong> <br/> Syntax: name = # <br/> Note: # Is the object name. This attribute is used to name an object so that other objects can use it. <Br/> example: <iframe src = "iframe.html" name = "iframe1"> <br/> <strong> 3. ID selector: </strong> <br/> Syntax: id = # <br/> Description: Specifies the unique ID selector of the tag. <Br/> example: <iframe src = "iframe.html" id = "iframe1"> <br/> <strong> 4. Container attributes: <br/> </strong> Syntax: height = # width = # <br/> Description: This attribute specifies the height and width of floating frames. The value is a positive integer (in pixels) or percentage. <Br/> height: Specify the height of the floating frame. <br/> width: Specify the width of the floating frame. <Br/> example: <iframe src = "iframe.html" height = 400 width = 400> <br/> <strong> 5. Resize: </strong> <br/> Syntax: noresize <br/> Description: Private Attribute of IE. The size of a floating frame cannot be adjusted. <Br/> example: <iframe src = "iframe.html" noresize> <br/> <strong> 6. Border display: </strong> <br/> Syntax: frameborder = 0, 1 <br/> Description: This attribute specifies whether a floating frame border is displayed. <Br/> 0: The floating frame border is not displayed. <br/> 1: The floating frame border is displayed. <Br/> example: <iframe src = "iframe.html" frameborder = 0> <br/> <iframe src = "iframe.html" frameborder = 1> <br/> <strong> 7. Border thickness: </strong> <br/> Syntax: border = # <br/> Note: 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. <Br/> example: <iframe src = "iframe.html" border = 1> <br/> <strong> 8. border color: </strong> <br/> Syntax: bordercolor = color <br/> Description: This attribute specifies the color of the floating frame border. Color can be an RGB color (RRGGBB) or a color name. <Br/> example: <iframe src = "iframe.html" bordercolor = red> <br/> <strong> 9. Alignment mode: </strong> <br/> Syntax: align = left, right, and center <br/> Description: This attribute specifies the alignment of floating frames and other objects. <Br/> left: center; <br/> right: right; <br/> center: center. <Br/> example: <iframe src = "iframe.html" align = left> <br/> <iframe src = "iframe.html" align = right> <br/> <iframe src = "iframe.html" align = center> <br/> <strong> 10. adjacent spacing: </strong> <br/> Syntax: framespacing = # <br/> Description: This attribute specifies the spacing between adjacent floating frames. The values are positive integers and 0 in pixels. <Br/> example: <iframe src = "iframe.html" framespacing = 10> <br/> <strong> 11. Inner whitelist attributes: </strong> <br/> Syntax: hspace = # vspace = # <br/> 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. <Br/> hspace: the size of the left and right boundary within a floating frame; <br/> vspace: the size of the upper and lower boundary within a floating frame. <Br/> example: <iframe src = "iframe.html" hspace = 1 vspace = 1> <br/> <strong> 12. Outer fill property: </strong> <br/> Syntax: marginheight = # marginwidth = # <br/> 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. <Br/> marginheight: The left and right boundary size of the floating frame. <br/> marginwidth: the upper and lower boundary size of the floating frame. <Br/> example: <iframe src = "iframe.html" marginheight = 1 marginwidth = 1>

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.