优先加载内容区
<!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
- Xcode Swift “Cannot find ‘MyClass’ in scope”
- Amazon S3 存储桶无法删除
- 关闭Sublime Text更新检查
- Device supports arm64-v8a, but APK only supports armeabi on device *
- npm ERR! gyp verb `which` failed Error: not found: python
- c++ ‘-DNODE_GYP_MODULE_NAME=libsass’ ‘-DUSING_UV_SHARED=1’ ‘-
- Sublime Text 自动换行
- macOS中staff和wheel是什么?
- command not found: deno – macOS