这里只讨论流式文档布局。
适用:其余元素高度已知。
不适用:有任何高度不定动态内容。
<div id="body" class="h-full text-white">
这里只讨论流式文档布局。
适用:其余元素高度已知。
不适用:有任何高度不定动态内容。
<div id="body" class="h-full text-white">
<!DOCTYPE html> | |
<html lang=zh-cn> | |
<meta charset=utf-8> | |
<meta name=viewport content="width=device-width,initial-scale=1.0"> | |
<meta http-equiv=X-UA-Compatible content="IE=edge"> | |
<style> | |
.buggy { | |
line-height: 1.75 | |
} |