This time I will bring you the parameters of iframe and what are the precautions for the parameters of iframe. The following is a practical case. Let’s take a look.
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 to add Iframe jump asp.net can jump in the current iframe
src link to the address URl
frameborder whether to display the border (0 no border 1 with borders)
scrolling Whether there are scroll bars (yes with scroll bars, no no scroll bars)
allowtransparency Whether the background is transparent (yes transparent, no opaque)
iframe is not very commonly used in standard web pages Very rarely used. It is appropriate to interpret iframe as a "browser within a browser".
<iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src="move-ad.htm"></iframe>
SRC=URI The page file path of the embedded cabinet rack
NAME=CDATA The name of the embedded cabinet rack
LONGDESC=URI Description
WIDTH=Length width
HEIGHT=Length height
ALIGN=[ top | middle | bottom | left | right ] Alignment method
FRAMEBORDER=[ 1 | 0 ] cabinet frame border
MARGINWIDTH=Pixels left and right width
MARGINHEIGHT=The height of the upper and lower vacancies of Pixels
SCROLLING=[ yes | no | auto ] flow bar (yes forced 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">
src: The path of the file, both But HTML files can also be text, ASP, etc.;
width, height: the width and height of the "internal frame" area;
scrolling: when the HTML file specified by SRC is not displayed in the specified area. , scrolling option, if set to NO, the scroll bar will not appear; if it is Auto: the scroll bar will appear automatically; if it is Yes, it will be displayed;
FrameBorder: The width of the area border, in order to make the "inner frame" and adjacent The contents are blended together and are often set to 0.
name: The name of the framework, used for identification.
<iframe border="3"></iframe>
Set the edge width around the frameboder
<iframe frameboder="0"></iframe>
height,width
<iframe height="31" width="88"></iframe>
scrolling
<iframe scrolling="no"></iframe>
src
<iframe src="girl.gif"></iframe>
A floating frame does not need to be declared as part of the frameset via the