CSS实现iPhoneSE界面个人练习第十九天
Html源代码
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Apple iPhone SE - Rotation</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div id="sticky">
<canvas id="iphone-se" width="432" height="976"></canvas>
<div id="loading">
<p>iPhone SE packs our most powerful chip into our most popular size at our most affordable price. It’s just what you’ve been waiting for.</p>
</div>
<p class="left">
Durable glass and<br>aluminum design
</p>
<p class="right">
Brilliant 4.7”<br>Retina HD<br>display
</p>
</div>
<!-- partial -->
<script src='https://cdn.jsdelivr.net/npm/pxloader@1.1.2/PxLoader.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/pxloader@1.1.2/PxLoaderImage.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script><script src="script.js"></script>
</body>
</html>
CSS源代码
body {
margin: 0;
background-color: #131313;
}
body.loaded {
height