单行单列1:采用float浮在左上角,固定宽度。
#content { float: left; padding: 10px; margin: 20px; background: #FFF; border: 5px solid #666; width: 400px; /* ie5win fudge begins */ voice-family: "\"}\""; voice-family:inherit; width: 370px; }html>body #content { width: 370px; /* ie5win fudge ends */ }
单行单列2
#content { position: absolute; top: 0px; left: 0px; padding: 10px; margin: 20px; background: #FFF; border: 5px solid #666; width: 400px; /* ie5win fudge begins */ voice-family: "\"}\""; voice-family:inherit; width: 370px; }html>body #content { width: 370px; /* ie5win fudge ends */ }
单行单列3 单行单列4
单行两列1:两列都固定宽度。第一列浮在左上角,第二列浮在第一列右边。
单行两列2
单行两列3 单行两列4
单行两列5
单行三列1:左右列都绝对定位(右列定位在右上)。左列和右列固定宽度,中间列自适应页面。
单行单列2 单行单列2 单行单列2 单行单列2
单行单列2
4(推荐):顶行自适应页面宽度。左右列绝对定位,中间列自适应页面。单行单列2
5:宽度满屏每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号