时间:2021-07-01 10:21:17 帮助过:76人阅读
对于页面,p+css可以实现frame的效果
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>p+css实现frameset效果</title>
<style type="text/css">
.header{border-bottom:1px solid #ccc;margin-bottom:5px;}
.MainContainer{min-width:960px;max-width:1600px;}
.sidebar{width:180px;float:left;margin-right:-180px;border-right:1px solid #ccc;min-height:500px;padding:5px;}
.main{float:left;margin-left:200px;padding:5px;}
.content{padding:0 10px;}
</style>
</head>
<body>
<p class="page">
<p class="header">
<p id="title">
<h1>顶部</h1>
</p>
</p>
<p class="MainContainer">
<p class="sidebar">
边栏
</p>
<p id="main" class="main">
内容
</p>
</p>
</p>
</body>
</html>
总结
以上就是HTML5不支持frameset的两种解决方法 的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!