css 空白页
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 空白页相关的知识,希望对你有一定的参考价值。
<script defer src="https://use.fontawesome.com/releases/v5.6.3/js/all.js" integrity="sha384-EIHISlAOj4zgYieurP0SdoiBYfGJKkgWedPHH4jCzpCXLmzVsw1ouK59MuUtP4a1" crossorigin="anonymous"></script>
<!-- Scripts and Links -->
<div class="container">
</div>
<!-- Logo and Footer -->
<div class="profile">
<i class="fab fa-codepen" id="codepen"></i>
<p class="author"><a href="https://codepen.io/" target="_blank">/PeytonDodd</a></p>
</div>
<footer class="footer">
This pen was made by <span><a href="https://reyesj.netlify.com/" target="_blank">Peyton Dodd</a></span>.
</footer>
@import url("https://fonts.googleapis.com/css?family=Lato:300,400,700");
*,
*::before,
*::after {
padding: 0;
margin: 0;
}
body {
background-color: #ecf0f1;
font-family: 'Lato', sans-serif;
overflow: hidden;
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%239C92AC" fill-opacity="0.4" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 90vh;
}
.flexy {
width: 30%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.badge {
background-color: #6bb9f0;
padding: .3rem .5rem;
margin: .3rem;
border-radius: 5px;
color: #eee;
cursor: pointer;
-moz-user-select: none;
user-select: none;
box-shadow: 0 5px 0 0 #3da3eb;
transition: .1s;
font-weight: 300;
}
.badge:active {
transform: translatey(4px);
box-shadow: 0 1px 0 0 #3da3eb;
}
.profile {
color: #555;
position: absolute;
top: .5rem;
left: 1.5rem;
display: flex;
align-items: center;
font-size: 1rem;
}
.profile .fa-codepen {
margin-right: .5rem;
}
.profile .author a:link,
.profile .author a:visited {
color: inherit;
text-transform: uppercase;
font-weight: 300;
text-decoration: none;
}
.footer {
height: 10vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid #cdd1d6;
background-color: #dee1e5;
font-weight: 300;
color: #555;
position: relative;
}
.footer span {
margin-left: 2px;
font-weight: 400;
cursor: pointer;
}
.footer span a:link,
.footer span a:visited {
color: currentColor;
text-decoration: none;
}
以上是关于css 空白页的主要内容,如果未能解决你的问题,请参考以下文章
空白页 PHP - HTML - CSS
删除页脚下方的空白 [关闭]
vue打包后空白页问题全记录 (background路径,css js404,jsonp等);
打印时如何避免最后出现多余的空白页?
在 react-router v4 的嵌套路由中看到空白页
MPDF 无输出(空白页)