本文用css设置网页高100%宽100%占满屏幕,可以看一下,挺不错的
css设置网页高100%宽100%占满屏幕 *{margin: 0;padding: 0;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}html {min-height: 100%;_height:100%;height:100%;}body {min-height: 100%;_height:100%;height:100%;/*background: #ff0000;*/}#all {background: #EEE;border-left: 1px solid #ff0000;border-right: 1px solid #ff0000;padding: 0 20px 0 20px;margin: auto;font: 1.5em arial, verdana, sans-serif;width: 100%;min-height: 100%;_height:100%;}#header,#pagefooter,#container {margin: 0 auto;width: 85%;border: 1px solid #000000;}#content {float: right;width: 66%;border: 1px solid green;}#side {float: left;width: 33%;border: 1px solid blue;}.clearfix::before {content: "";display: table;width: 0;height: 0;overflow: hidden;}.clearfix::after {content: "";clear: both;display: table;width: 0;height: 0;overflow: hidden;}.clearfix {zoom: 1;}头部
中部内容
中部侧边
需要学习CSS的同学请关注创想鸟CSS视频教程,众多css在线视频教程可以免费观看!
以上就是用css设置网页占满屏幕的实例代码的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1608541.html
微信扫一扫
支付宝扫一扫