当前位置:萝卜系统下载站 > 网页设计教程 > 详细页面

框架边框与页面内容的水平边距marginwidth

框架边框与页面内容的水平边距marginwidth

更新时间:2023-06-13 文章作者:未知 信息来源:网络 阅读次数:

网页的本质就是超级文本标记语言,通过结合使用其他的Web技术(如:脚本语言、公共网关接口、组件等),可以创造出功能强大的网页。因而,超级文本标记语言是万维网(Web)编程的基础,也就是说万维网是建立在超文本基础之上的。超级文本标记语言之所以称为超文本标记语言,是因为文本中包含了所谓“超级链接”点。

【实例介绍】

框架边框与页面内容的水平边距marginwidth

框架页面与HTML中的表格一样,也可以具有边框与页面内容的水平边距。

【基本语法】

<frame  src="页面源文件地址"  marginwidth="水平边距">

【语法介绍】

水平边距用于设置页面的左右边缘与框架边框的距离。

【实例代码】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>框架边框与页面内容的水平边距</title> </head> <frameset rows="134,*" cols="*" frameborder="yes" border="1" framespacing="1">   <frame src="top.html" name="topFrame" noresize marginwidth="100"/>   <frameset rows="*" cols="355,*" framespacing="1" frameborder="yes" border="1">     <frame src="left.html" name="leftFrame" noresize marginwidth="30"/>     <frame src="right.html" name="rightFrame" noresize marginwidth="50"/>   </frameset> </frameset> <noframes><body> </body></noframes> </html>

【代码分析】

在代码中,加粗部分的marginwidth="100"、marginwidth="30"和marginwidth="50"标记用于设置框架边框与页面内容的水平边距为100像素、30像素、50像素,在浏览器中预览,如果如图所示。

框架边框与页面内容的水平边距marginwidth运行效果

 【素材及源码下载】

请点击:框架边框与页面内容的水平边距marginwidth 下载本实例相关素材及源码

 


网站建设是一个广义的术语,涵盖了许多不同的技能和学科中所使用的生产和维护的网站。

温馨提示:喜欢本站的话,请收藏一下本站!

本类教程下载

系统下载排行