Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of parameters in iframe

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you the "sample analysis of the parameters in iframe", which is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and study the "sample analysis of parameters in iframe".

Iframe src= "test.jsp" width= "100" height= "50" frameborder= "no" border= "0" marginwidth= "0" marginheight= "0" scrolling= "no" allowtransparency= "yes" >

Runat= "server" this is best coupled with Iframe jump asp.net can jump in the current iframe

The address to which src is linked: URl

Whether frameborder displays borders (0 without borders 1 with borders)

Does scrolling have scroll bars (yes has scroll bars no does not have scroll bars)

Whether the allowtransparency background 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 a "browser in a browser". It should also be a form of framework, which, unlike iframe, can be embedded in any part of a web page. For example:

The page file path of the SRC=URI embedded shelf

The name of the NAME=CDATA embedded shelf

LONGDESC=URI description

WIDTH=Length width

HEIGHT=Length height

ALIGN= [top | middle | bottom | left | right] alignment

FRAMEBORDER= [1 | 0] shelf frame

MARGINWIDTH=Pixels left and right vacated width

Height vacated from top to bottom of MARGINHEIGHT=Pixels

SCROLLING= [yes | no | auto] flow bar (yes forced display | no never displayed | auto automatic)

The format in which Iframe tags are used is:

Src: the path to the file, which can be either HTML file, text, ASP, etc.

Width, height: width and height of the "internal framework" area

Scrolling: scroll option when the specified HTML file of SRC cannot be displayed in the specified area. If set to NO, no scroll bar appears; if Auto:, scroll bar appears automatically; if Yes, scroll bar appears automatically

FrameBorder: the width of the border of the area, which is often set to 0 in order to blend the "inner frame" with the adjacent content.

Name: the name of the framework that is used for identification.

A floating frame or container used to set text or graphics.

Border

Sets the width of the edge around the frame

Frameboder

Sets whether the border is not 3D (0 = No, 1 = Yes)

Height,width

Set the width and height of the quality frame

Scrolling

Is there a scroll bar (yes,no,auto)

Src

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

Note:

A floating frame does not need to be declared as part of a framework setting through an element

WebTV and Netscape 4.x (4.0 to 4.75) do not support floating frames.

In the HTML4.01 strict specification, elements are not defined. Floating frameworks can use elements and CSS positioning methods to simulate the implementation.

Attributes of the floating frame tag Iframe:

1. File location:

Syntax: src=url

Description: url is the location of the embedded HTML file, which can be relative address or absolute address.

Example:

2. Object name:

Syntax: name=#

Description: # is the name of the object. This property names the object so that other objects can take advantage of it.

Example:

3. ID selector:

Syntax: id=#

Description: specifies the unique ID selector for the tag.

Example:

4. Container attributes:

Syntax: height=# width=#

Description: this property specifies the height and width of the floating frame. The value is 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:

5. Resize:

Syntax: noresize

Description: IE proprietary attribute that specifies that floating frames cannot be resized.

Example:

6. The border shows:

Syntax: frameborder=0, 1

Description: this property specifies whether a floating frame frame is displayed.

0: no floating frame frame is displayed

1: displays the floating frame frame.

Example:

7. Frame thickness:

Syntax: border=#

Description: this property specifies the thickness of the floating frame border, with values of positive integers and 0, in pixels. In order to seamlessly combine floating frames with pages, border is generally equal to 0.

Example:

8. Border color:

Syntax: bordercolor=color

Description: this property specifies the color of the floating frame frame. Color can be a RGB color (RRGGBB) or a color name.

Example:

The above is all the contents of the article "sample Analysis of parameters in iframe". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report