优先加载内容区
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8" /> <title>布局</title> <style> .demo { overflow: hidden; width: 1000px; height: 600px; padding: 10px; margin: 0 auto; background: #f9f9f9; } .columns { height: 100%; width: 100%; right: 74%; position: relative; } .main { width: 74%; min-height: 100%; position: relative; left: 100%; background: #ddd; float: left; } .sidebar { width: 25%; min-height: 100%; float: left; overflow: hidden; background: #ccc; } </style> </head> </head> <body> <div class="demo"> <div class="columns"> <div class="main">main</div> <div class="sidebar">sidebar</div> </div> </div> </body> </html>
Related Posts
- npm ERR! gyp verb `which` failed Error: not found: python
- c++ ‘-DNODE_GYP_MODULE_NAME=libsass’ ‘-DUSING_UV_SHARED=1’ ‘-
- Sublime Text 自动换行
- Failed to change timestamp of the file in IntelliJ IDEA
- macOS中staff和wheel是什么?
- #1698 – Access denied for user ‘root’@’localhost’
- Warning in ./libraries/plugin_interface.lib.php#551
- ERROR 1067 (42000): Invalid default value for ‘created_at’
- Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable