Home >Web Front-end >HTML Tutorial >What are the operations of de-bordering and borderless iframes?

What are the operations of de-bordering and borderless iframes?

php中世界最好的语言
php中世界最好的语言Original
2018-02-10 10:10:473363browse

This time I will bring you what are the operation methods of iframe de-border and borderless, and what are the precautions of iframe de-border and borderless operation. The following is a practical case, let’s take a look. one time.

<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&#39;s url" width="750" height="30" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>


runat="server" This is best to add Iframe jumpasp.net Can jump in the current iframe
src link to the address URl
frameborder Whether to display borders (0 without borders, 1 with borders)
scrolling Whether there are scroll bars (yes with scroll bars, no without scroll bars)
allowtransparency Whether the background is transparent (yes transparent, no opaque)
iframe is not Very commonly used, rarely used in standard web pages. It is appropriate to interpret iframe as a "browser within a browser". d5ba1642137c3f32f4f4493ae923989c should also be a form of frame. The difference from 04a0d55efbbfd646a993fbc01f262c57 is that iframe can be embedded in any part of the web page. For example:

<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
FRAMEBORDER=[ 1 | 0 ] cabinet frame border
MARGINWIDTH=Pixels left and right Vacant width
MARGINHEIGHT=Pixels The height of the upper and lower vacancies
SCROLLING=[ yes | no | auto ] flow bar (yes forced display|no never display|auto automatic)
The usage format of the Iframe tag is :
917005791b93d782eed3cf39277f1256065276f04003e4622c4fe6b64f465b88
src : The path of the file, which can be an HTML file, text, ASP, etc.;
width, height: the width and height of the "inner frame" area;
scrolling: When the specified HTML file of SRC is in the specified When the area is not displayed, the scrolling option, if set to NO, the scroll bar will not appear; if it is Auto: the scroll bar will automatically appear; if it is Yes, it will be displayed;
FrameBorder: the width of the area border, in order to allow "Inner frame" blends with adjacent content, usually set to 0.
name: The name of the framework, used for identification.
d5ba1642137c3f32f4f4493ae923989cA floating frame or container used to set text or graphics.

border 
<iframe border="3"></iframe>

Set the edge width around the frame

frameboder 
<iframe frameboder="0"></iframe>

Set whether the border is 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 a scroll bar (yes, no, auto)

src 
<iframe src="girl.gif"></iframe>

指定iframe调用的文件或图片(html,htm,gif,jpeg,jpg,png,txt,*.*)

注意事项:

一个浮动框架不需要通过f900b4fc197b16ab214eecf015bb6bd2元素声明为框架设置的一部分;
WebTV和Netscape 4.x(4.0 到 4.75)不支持浮动框架。
在HTML4.01严格规范中,d5ba1642137c3f32f4f4493ae923989c元素没有被定义。浮动框架可以使用dc6dce4a544fdca2df29d5ac0ea9906b元素和CSS定位方法来模仿实现。

浮动帧标记Iframe的属性

1、文件位置:
语法:src=url
说明:url为嵌入的HTML文件的位置,可以是相对地址,也可以是绝对地址。
示例:91c07a99a6cbfc3346d7e9cf100203a0

2、对象名称:
语法:name=#
说明:#为对象的名称。该属性给对象取名,以便其他对象利用。
示例:834eeaa108fae651ac0f1a61506f3463

3、ID选择符:
语法:id=#
说明:指定该标记的唯一ID选择符。
示例:2eaaf2cafd30772166cb32960b7d8a23

4、容器属性:
语法:height=# width=#
说明:该属性指定浮动帧的高度和宽度。取值为正整数(单位为像素)或百分数。
height:指定浮动帧的高度;
width:指定浮动帧的宽度。
示例:1b880b1d6b519f12f07c92a147434d69

5、尺寸调整:
语法:noresize
说明:IE专有属性,指定浮动帧不可调整尺寸。
示例:9bf8fb45f0cfacdc45e86c89da471672

6、边框显示:
语法:frameborder=0、1
说明:该属性规定是否显示浮动帧边框。
0:不显示浮动帧边框;
1:显示浮动帧边框。
示例:a0060b8ca97efa7ed733c77fe9598fc1
6fce208bead73925e6049e758633fe8b

7、边框厚度:
语法:border=#
说明:该属性指定浮动帧边框的厚度,取值为正整数和0,单位为像素。为了将浮动帧与页面无缝结合,border一般等于0。
示例:b1ff836e38d3812c1b4447cd1416700f

8、边框颜色:
语法:bordercolor=color
说明:该属性指定浮动帧边框的颜色。color可以是RGB色(RRGGBB),也可以是颜色名。
示例:98ee984baebc87e6e6fa4d3fbcfd4952

9、对齐方式:
语法:align=left、right、center
说明:该属性指定浮动帧与其他对象的对齐方式。
left:居左;
right:居右;
center:居中。
示例:e5fe4df2baf60b7e3e6d9f62654c2ffa
deaf525fb38ce7bd8714383b44c0e98d
b90f5982a99520349bb69623d637c6f5

10、相邻间距:
语法:framespacing=#
说明:该属性指定相邻浮动帧之间的间距。取值为正整数和0,单位为像素。
示例:3805816cafe2563cc3da65b4c5ff1a68

11、内补白属性:
语法:hspace=# vspace=#
说明:该属性指定浮动帧内的边界大小。取值为正整数和0,单位为像素。两个属性应同时应用。
hspace:浮动帧内的左右边界大小;
vspace:浮动帧内的上下边界大小。
示例:286c94cdecd90f2426dee0f1f4d96d33

12、外补白属性:
语法:marginheight=# marginwidth=#
说明:该属性指定浮动帧的边界大小。取值为正整数和0,单位为像素。两个属性应同时应用。
marginheight:浮动帧的左右边界大小;
marginwidth:浮动帧的上下边界大小。
示例:ef7001e4e65eb41b9eeb2b2ba0faba7d 

相信看了这些案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!

相关阅读:

base标签需要如何使用

html中如何使用js来获取本地系统时间

a标签中怎样设置隐藏其他属性只显示图片

The above is the detailed content of What are the operations of de-bordering and borderless iframes?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use base tagNext article:How to use base tag