4-3是这样吗?

来源:4-2 侧边栏导航跟随案例

慕瓜8136058

2017-09-23 16:03:19

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title></title>

<style type="text/css">

    

*{

padding: 0;

margin: 0;

}

.one{

width: 100%;

height: 4000px;

background: url("img/mooc.png") center top no-repeat;

}

.one1{

width: 360px;

height: 360px;

background: url("img/login.png");

position: fixed;

float: left;

top: 50%;

bottom:50%;

margin-top: -180px;

}

.one2{

width: 360px;

height: 360px;

background: url("img/login.png");

position: fixed;

float: right;

top: 50%;

right:100px;

margin-top: -180px;

margin-right:-100px;

}

</style>

</head>

<body>

<div class="one"></div>

<div class="one1"></div>

<div class="one2"></div>

</body>

</html>


写回答

1回答

樱桃小胖子

2017-09-24

效果实现的很好,继续加油哦!

0

0 学习 · 36712 问题

查看课程