如何在html中设置固定容器高度并解决溢出与隐藏问题
发布时间
阅读量:
阅读量
固定容器高度 溢出隐藏
源码
<style>
/* 固定容器高度 溢出隐藏 */
body {
padding:0;
margin:0;
overflow:hidden;
height: 600px;
}
</style>
效果图

背景渐变色渲染原理
源码
/* 背景渐变色渲染原理 */
body{ min-height: 100%; background: linear-gradient(#ffffff,#FFFAD0); }
效果图

还没有任何评论哟~
