Modern One-Page HTML Layout with Input and Output
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Modern One-Page Layout</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #f2f2f2;
}
<pre><code> header {
background-color: #222;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
font-size: 36px;
}
input {
display: block;
margin: 50px auto;
padding: 10px;
width: 80%;
border: none;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.5);
font-size: 18px;
color: #555;
background-color: #fff;
outline: none;
}
.output {
display: block;
margin: 50px auto;
padding: 20px;
width: 80%;
border: none;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.5);
font-size: 18px;
color: #555;
background-color: #fff;
}
</style>
</code></pre>
</head>
<body>
<header>
<h1>Modern One-Page Layout</h1>
</header>
<pre><code><input type='text' placeholder='Enter input here'>
<div class='output'>
<!-- Output data will be displayed here -->
</div>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/nnpK 著作权归作者所有。请勿转载和采集!