标签:oca center one lang pointer radius mic add figure
<!doctype html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>HTTP 404 - SegmentFault</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { line-height: 1.7; margin: 0; box-sizing: border-box; } html { background-color: #f3f3f3; color: #888; display: table; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; height: 100%; width: 100%; } body { display: table-cell; vertical-align: middle; margin: 2em auto; } h1 { color: #555; font-size: 2em; } a { color: #06a; text-decoration: none; } a:hover { text-decoration: underline; } p, .p { margin: 10px 0 15px; } input, button { font-size: 16px; padding: 6px 10px; border: none; border-radius: 2px; } input { background-color: #f3f3f3; width: 60%; } button { min-width: 80px; background-color: #009a61; text-align: center; color: #fff; cursor: pointer; } button:hover, button:active { background-color: #008151; } .error { color: #d9534f; } .text-center { text-align: center; } .box { margin: 0 auto; padding: 40px; background-color: #fff; width: 540px; } .figure { float: right; line-height: 0; } .figure img { height: 200px; } .footer { margin: 15px 0 0; color: #999; text-transform: uppercase; font-size: 13px; } .footer a { color: #999; } @media only screen and (max-width: 480px) { .box { padding: 20px; width: 100%; } h1 { font-size: 1.5em; margin: 0 0 0.3em 0; } .figure { float: none; } } .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; } </style> </head> <body> <div class="box"> <div class="clearfix"> <figure class="figure"> <img src="https://cdn.segmentfault.com/v-5e81b20e/global/img/404.svg" alt="杯具啊"> </figure> <h1>杯具啊!</h1> <div class="p">HTTP 404…… <br/>可能这个页面已经飞走了</div> <div class="p"> <button type="button" onclick="window.location.href=‘/‘">回首页</button> </div> </div> </div> <div class="footer text-center">1024 © <a href="https://segmentfault.com">SegmentFault</a> </div> </body> </html>
标签:oca center one lang pointer radius mic add figure
原文地址:https://www.cnblogs.com/panziwen/p/12660505.html