Home > Web Front-end > H5 Tutorial > h5 avatar image rotation css3 precisely controls the position of each image

h5 avatar image rotation css3 precisely controls the position of each image

一个新手
Release: 2017-10-06 10:40:17
Original
2789 people have browsed it


h5 avatar image rotation css3 precisely controls the position of each image:
1. The following is the required rendering:
h5 avatar image rotation css3 precisely controls the position of each image
2. Use The pictures are:
h5 avatar image rotation css3 precisely controls the position of each image
h5 avatar image rotation css3 precisely controls the position of each image
h5 avatar image rotation css3 precisely controls the position of each image

<p id="box1Kuang1">
    <p class="con-show01 mar-top1 mar-left1">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top1">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top1">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top1">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top1">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>

    <p class="clearfix"></p>

    <p class="con-show01 mar-top2 mar-left2">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top2">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top2">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top2">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>

    <p class="clearfix"></p>

    <p class="con-show01 mar-top3 mar-left3">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top3">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top3">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top3">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p>
    <p class="con-show01 mar-top3">
        <p class="con-show02">
            <p class="con-show03">
                <img  src="ossweb-img/hexagon.png" alt="h5 avatar image rotation css3 precisely controls the position of each image" >
            </p>
        </p>
    </p></p>$REM:            24;//rem unit
@function REM($n){
    @return $n/$REM*1rem;
}
#box1Kuang1 {
       width: REM(517);
       height: REM(305);
       margin: 0 auto;
       background: url(../ossweb-img/box1_kuang1.png) 0 0 no-repeat;
       background-size: 100% 100%;
       margin-top: REM(30);
       .con-show01 {
           width: REM(94);
           height: REM(108);
           float: left;
           margin-left: REM(0);
           overflow: hidden;
           transform: rotate(120deg);
           .con-show02 {
               width: REM(94);
               height: REM(108);
               overflow: hidden;
               transform: rotate(-60deg);
               .con-show03 {
                   width: REM(94);
                   height: REM(108);
                   overflow: hidden;
                   transform: rotate(-60deg);

                   background: url(../ossweb-img/prize_libao2.png) no-repeat 50% center;
                   background-size: auto 100%;

                   &>img {
                       position: absolute;
                       top: 0;
                       left: 0;
                       width: 100%;
                       height: 100%;
                   }
               }
           }
           &.mar-top1 {
               margin-top: REM(15);
           }
           &.mar-top2 {
               margin-top: REM(-58);
           }
           &.mar-top3 {
               margin-top: REM(-58);
           }
           &.mar-left1 {
               margin-left: REM(30);
           }
           &.mar-left2 {
               margin-left: REM(78);
           }
           &.mar-left3 {
               margin-left: REM(30);
           }
       }
   }
Copy after login

The above is the detailed content of h5 avatar image rotation css3 precisely controls the position of each image. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template