<! DOCTYPEhtml>          
<html>          
<head>          
    <meta charset="UTF-8">      
    <meta name="viewport" content="Width =device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">    
    <title>CSS implementation of div full-screen adaptive display (two options)</title>        
    <style type="text/css">  
        html.body {padding: 0;  margin: 0;  height: 100%;  overflow:hidden; }.m-demo {height: 100%;background: # 666666; }.m-demo2 {position: absolute; height: 100%; width: 100%; top: 0px; bottom: 0px;overflow:hidden; word-break:break-all;background: green; }</style>        
</head>          
<body>  
    <div class="m-demo"></div>
    <div class="m-demo2"></div>
</body>          
</html>
Copy the code

\