html flex 的高度,flex布局高度

图是正方形的,外面的item也想是正方形,但是不知道问什么就高出很多

bV6CsS?w=369&h=577

PageSlider Demo

html,

body {

width: 100%;

height: 100%;

margin: 0;

padding: 0;

overflow: hidden;

}

.pages {

width: 100%;

height: 100%;

position: relative;

}

.page {

font-size: 100px;

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

overflow: hidden;

transform: translate3d(0px, 100%, 0px);

-webkit-transform: translate3d(0px, 100%, 0px);

-moz-transform: translate3d(0px, 100%, 0px);

transition: transform .5s ease-out;

-webkit-transition: -webkit-transform .5s ease-out;

-moz-transition: -moz-transform .5s ease-out;

}

.page1 {

background: url(image/background_01.png);

background-size: contain;

}

.page2 {

position: absolute;

/*background: url(image/employee_03.png);*/

background-size: 100% 100%;

}

.page3 {

position: absolute;

background: url(image/background_03.png);

background-size: 100% 100%;

}

.fg-image1 {

width: 100%;

height: auto;

position: absolute;

z-index: -1;

}

.fg-image2 {

width: 100%;

height: auto;

position: absolute;

z-index: -1;

margin-top: 30px;

}

.fg-image3 {

width: 100%;

height: auto;

position: absolute;

z-index: -1;

}

.flex-box {

height: 100%;

}

.flex-box .left {

width: 25%;

height: 100%;

background: #ffffff;

float: left;

}

.flex-box .right {

width: 70%;

float: left;

display: -webkit-box;

display: -moz-box;

display: -ms-flexbox;

display: -webkit-flex;

display: flex;

-webkit-box-align: flex-start;

-ms-flex-align: flex-start;

-webkit-align-items: flex-start;

align-items: flex-start;

flex-wrap: wrap;

height: auto;

}

.flex-box .right .item {

flex: 0 0 33.33%;

padding: 5px;

box-sizing: border-box;

}

.flex-box .right .item img {

width: 100%;

}

/* the box animation */

.box {

width: 100px;

height: 100px;

background: black;

}

.play .myAnimation {

animation: move 1s ease 1 both;

-webkit-animation: move 1s ease 1 both;

}

@-webkit-keyframes move {

100% {

-webkit-transform: translate3d(150px, 0, 0);

transform: translate3d(150px, 0, 0);

-ms-transform: translate3d(150px, 0, 0);

}

}

forground_01.gif

1.png

2.png

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

12.png

13.png

14.png

15.png

16.png

17.png

18.png

forground_03.gif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值