首页 > 编程知识 正文

HTML基本框架,html框架怎么设计

时间:2023-05-04 03:08:33 阅读:253495 作者:2066

通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每份HTML文档称为一个框架,并且每个框架都独立于其他的框架

使用框架的坏处:

开发人员必须同时跟踪更多的HTML文档很难打印整张页面 项目目录

PAGE_A,B,C就是在网页上显示一句话 这里就不做展示了

案例源码及效果展示

<!DOCTYPE html><html><head><meta charset="UTF-8"><title>框架左中右布局案例</title></head><frameset cols="25%,50%,25%"><!--noresize属性框架是不可调整尺寸的--><frame src="PAGE_A.html" noresize="noresize"/><frame src="PAGE_B.html" /><frame src="PAGE_C.html" /></frameset></html>

效果展示

<!DOCTYPE html><html><head><meta charset="UTF-8"><title>框架左中右布局案例</title></head><frameset cols="25%,50%,25%"><!--noresize属性框架是不可调整尺寸的--><frame src="PAGE_A.html" noresize="noresize"/><frame src="PAGE_B.html" /><frame src="PAGE_C.html" /></frameset></html>
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>导航框架</title></head><frameset cols="25%,75%"><frame src="forward.html" /><frame src="PAGE_A.html" name="showFrame"/></frameset></html><!DOCTYPE html><html><head><meta charset="UTF-8"><title>导航跳转页面</title></head><body><a rel="external nofollow" href="PAGE_A.html" target="showFrame">第一个页面</a><br /><a rel="external nofollow" href="PAGE_B.html" target="showFrame">第二个页面</a><br /><a rel="external nofollow" href="PAGE_C.html" target="showFrame">第三个页面</a><br /></body></html>


版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。