css布局实现一台笔记本电脑效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现一台笔记本电脑效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
* html .clearfix {
zoom: 1;
}
/* IE6 */
*:first-child + html .clearfix {
zoom: 1;
}
/* IE7 */
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
zoom: 1;
/* For IE 6/7 (trigger hasLayout) */
}
* {
margin: 0;
padding: 0;
border: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
a, a:hover, a:focus, a:active {
text-decoration: none !important;
outline: none;
}
.npd {
padding: 0;
}
ul, li {
padding: 0;
margin: 0;
list-style: none;
}
a:hover {
opacity: 0.7;
color: white;
}
body {
font-size: 14px;
color: black;
}
.clear {
clear: both;
}
img {
max-width: 100%;
}
h1, h2, h3, h4 {
padding: 0;
margin: 0;
}
.wrap {
width: 100%;
height: 100vh;
position: relative;
background-color: #22262b;
display: flex;
justify-content: center;
align-items: center;
}
.comp {
width: 100%;
height: 194px;
text-align: center;
}
.comp .monitor {
width: 275px;
height: 181px;
display: block;
margin: 0 auto;
border-radius: 10px 10px 0px 0px;
padding: 9px;
border: solid 1px #e0e2e2;
background-color: black;
}
.comp .mid {
float: left;
display: block;
height: 100%;
position: relative;
background-color: #abadc6;
width: 50%;
}
.comp .mid.codigo {
background-color: #22262b;
}
.comp .site {
overflow: hidden;
position: absolute;
width: 105px;
height: 138px;
bottom: 0;
right: 0;
}
.comp .site .topbar {
width: 100%;
}
.comp .site .cerrar {
width: 100%;
padding: 3px;
line-height: 0;
display: flex;
align-items: center;
justify-content: flex-start;
border-radius: 4px 4px 0px 0px;
background-color: #afa895;
}
.comp .site .cerrar > div {
display: inline-block;
width: 2px;
height: 2px;
border-radius: 50%;
background: white;
margin: 0px 1px;
}
.comp .site .inhead {
padding: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0