Flex案例一:

 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<style type="text/css">
body,h1,h2,h3,h4,h5,h6,dl,dt,dd,ul,ol,li,th,td,p,blockquote,pre,form,fieldset,legend,input,button,textarea,hr{
margin:0;
padding:0;
}
body{
display: flex;
background: -webkit-linear-gradient(top,#222,#333);
background: linear-gradient(top,#222,#333);
justify-content:center;
align-items:center;
align-content:center;
flex-wrap:wrap;
position:relative;
}
[class$="box"]{
background-color: #e7e7e7;
width: 104px;
height: 104px;
/*padding:4px;
margin:16px;*/
object-fit:contain;
border-radius: 10%;
box-shadow: inset 0 5px white,inset 0 -5px #bbb,inset 5px 0 #d7d7d7,inset -5px 0 #d7d7d7;
display: flex; position: absolute;
top:0;
left: 0;
/*top: 40%;
left: 40%;*/
}
[class="item"]{
display: block;
width:24px;
height: 24px;
border-radius: 50%;
margin:4px;
background-color: #333;
box-shadow: inset 0 3px #111,inset 0 -3px #555;
}
.first-box{
justify-content:center;
align-items:center;
align-content:center;
}
.second-box{
justify-content:space-between;
}
.second-box .item:nth-of-type(2){
-webkit-align-self:flex-end;
}
.third-box{ }
.third-box .item:nth-of-type(2){
align-self:center;
}
.third-box .item:nth-of-type(3){
align-self:flex-end;
}
.sixth-box,
.four-box{
justify-content:space-between;
justify-wrap:wrap;
}
.sixth-box .column,
.four-box .column{
display: flex;
flex-direction:column;
justify-content:space-between;
}
.fifth-box{
justify-content:space-between;
}
.fifth-box .column{
display: flex;
flex-direction:column;
justify-content:space-between;
}
.fifth-box .column:nth-of-type(2){
justify-content:center;
align-items:center;
} .tbox{
width: 104px;
height: 104px; background-color: transparent;
border:none;
box-shadow: none;
transform-style:preserve-3d;
display: flex;
justify-content:center;
align-items:center;
align-content:center;
flex-wrap:wrap;
position:relative;
-webkit-animation:iphone 4s linear infinite; transform:rotateZ(30deg);
}
.tbox:hover{
-webkit-animation-play-state:paused;
}
.sixth-box{
/*transform:rotate(30deg);*/
transform-origin:right bottom;
transform:rotateZ(30deg);
}
.fifth-box{
margin-left: 25px;
margin-top: 7px;
transform-origin:right 50%;
transform:translateZ(-105px) rotateY(90deg) rotateX(-29deg);
}
.four-box{
margin-left: 40px;
margin-top: -45px;
/*margin-top: -36px;*/
transform-origin:left 50%;
transform:translateZ(-105px) rotateY(-90deg) rotateX(30deg);
}
.third-box{
margin-left: 40px;
margin-top:-45px;
/*margin-left: 240px;*/
transform-origin:left 50%;
transform:translateZ(-105px) rotateZ(30deg);
}
.second-box{
margin-left: 7px;
margin-top:80px;
/*margin-top: 128px;*/
transform-origin: 50% top;
transform:translateZ(-105px) rotateX(90deg) rotateY(30deg);
}
.first-box{
margin-left:58px;
margin-top:-116px;
/*margin-top: -96px;*/
transform-origin: 50% bottom;
transform:translateZ(-105px) rotateX(-90deg) rotateY(-30deg);
} @-webkit-keyframes iphone{
from{
transform:rotateY(0deg);
}
to{
transform:rotateY(360deg);
}
}
</style>
</head>
<body>
<div class="tbox">
<div class="first-box">
<span class="item"></span>
</div>
<div class="second-box">
<span class="item"></span>
<span class="item"></span>
</div>
<div class="third-box">
<span class="item"></span>
<span class="item"></span>
<span class="item"></span>
</div>
<div class="four-box">
<div class="column">
<span class="item"></span>
<span class="item"></span>
</div>
<div class="column">
<span class="item"></span>
<span class="item"></span>
</div>
</div>
<div class="fifth-box">
<div class="column">
<span class="item"></span>
<span class="item"></span>
</div>
<div class="column">
<span class="item"></span>
</div>
<div class="column">
<span class="item"></span>
<span class="item"></span>
</div>
</div>
<div class="sixth-box">
<div class="column">
<span class="item"></span>
<span class="item"></span>
<span class="item"></span>
</div>
<div class="column">
<span class="item"></span>
<span class="item"></span>
<span class="item"></span>
</div>
</div>
</div> </body>
</html>

Flex 学习的更多相关文章

  1. 【转】【Flex】FLEX 学习网站分享

    [转:http://hi.baidu.com/tanghecaiyu/item/d662fbd7f5fbe02c38f6f764 ] FLEX 学习网站分享 http://blog.minidx.co ...

  2. flex学习小结

    接触到flex一个多月了,今天做一个学习小结.如果有知识错误或者意见不同的地方.欢迎交流指教. 画外音:先说一下,我是怎么接触到flex布局的.对于正在学习的童鞋们,我建议大家没事可以逛逛网站,看看人 ...

  3. CSS3伸缩布局Flex学习笔记

    如果需要使用伸缩布局首先得把display:flex;对于兼容还得加前缀display:-webkit-display:flex;等其他浏览器前缀,但我本机Chrome测试已经不需要加前缀了,其实这些 ...

  4. flex学习

            今天看视频学习的时候,发现css有一个 flex 的属性,非常的好用,为了让自己能够熟记,特意来分享一下flex的用法. 首先,采用Flex布局的元素,称为Flex容器(flex co ...

  5. 【Flex学习】Flex4学习网站

    http://blog.minidx.com/category/flex  来自为知笔记(Wiz)

  6. Flex学习总结

    Flex SDK Flex框架类库.Flex编译环境.调式器.MXML.ActionScript编程语言以及其它工具组成,Flash Builder是其开发环境,   Flash Player的工作模 ...

  7. Flex学习第一天(两个数相加)

    <?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="htt ...

  8. Flex学习教程网站地址

    http://www.985school.com/flex/complex_controls.html

  9. flex学习网站地址

    http://hacker47.iteye.com/blog/213887 http://www.cuplayer.com/player/PlayerCode/Flex/ http://bbs.9ri ...

  10. flex学习, 尝试布局一个计算器

    <!DOCTYPE html> <html> <head> <title>flex</title> </head> <st ...

随机推荐

  1. java 百分比显示Double类型数值

    DecimalFormat percent = new DecimalFormat("0.00%"); completed_num = (double) involvedTask_ ...

  2. Texas Instruments matrix-gui-2.0 hacking -- index.php

    <?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistrib ...

  3. stm32 SPI介绍和配置

    SPI是一种高速的,全双工同步的通信总线,在芯片管脚上占用了四根线,节约了芯片的管脚,同时为PCB的布局节省了空间,提供了方便,因此越来越多的芯片集成了这种通信协议,STM32也就有了SPI接口. 有 ...

  4. ubuntu12.04 alternate win7 双系统安装

    ubuntu alternate的安装比desktop复杂一点,因为alternate的安装过程有个步骤是检测cd-rom,如果你是刻盘安装,自然没问题,但是,现在的安装一般是将系统刻到U盘里,或者在 ...

  5. wireshark 抓包过滤器

    wireshark 抓包过滤器 https://www.cnblogs.com/laoxiajiadeyun/p/10365073.html 过滤器分为抓包过滤器和显示过滤器,抓包过滤器会将不满足过滤 ...

  6. (2)hashlib模块(加密算法模块)

    hash算法模块内有很多种,如md5.sha1等,只是加密的程度不一样 hash是一种算法 该算法接收传入的文本内容,经过hash运算得到一串hash值 hash值具备三个特点: 1. 如果传入的内容 ...

  7. CTF-练习平台-Misc之 Telent

    三.Telent 下载下来文件,解压压缩包,用记事本打开pcap文件,发现flag

  8. 偶尔用得上的Git操作

    Git 工作流 一个不错的工作流图示 创建一个空分支 git checkout --orphan 分支名 删除远程分支和tag git push origin :<branchName> ...

  9. struts2访问ServletAPI方式和获取参数的方式

    一.访问ServletAPI的三种方式 方式1:通过让Action类去实现感知接口. 此时项目依赖:servlet-api.jar. ServletRequestAware:感知HttpServlet ...

  10. vim golang 插件

    最好用的vim golang 插件 可自动缩进 git clone git@github.com:aimin/InstallvimGo.git