问答详情
源自:3-3 移动端项目开发----表示层

music标签移动不到右上角,也显示不出红色圆圈。初学者~求大神指点

* {

margin: 0;

padding: 0;

border: none;

font-size: 1.5625vw;

font-family: "microsoft Yahei";

}

#music {

position: fixed;

top: 3vh;

right: 4vm;

z-index: 5;

width: 15vw;

height: 15vw;

border: 4px solid #ef1639;

border-radius: 50%;

background: #fff;

}

#music > img:first-of-type {

position: absolute;

top: 24%;

right: 2.5%;

width: 28.421%;

}

#music > img:last-of-type {

position: absolute;

top: 0;

right: 0;

bottom: 0;

left: 0;

margin: auto;

width: 79%;

}


提问者:a_阿怪 2016-07-21 15:59

个回答

  • 凡芒至尊
    2016-10-21 21:48:55

    同问???

  • a_阿怪
    2016-07-24 11:40:35

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="UTF-8">

    <title>慕课贺春</title>

    <link rel="stylesheet" type="text/css" href="css/style.css">

    </head>

    <body>

    <div id="music">

    <img src="image/music_pointer.png">

    <img src="image/music_disc.png">

    </div>

    <div id="page1">

    <div></div>

    <div>点击屏幕<br>开启好运2016</div>

    <div></div>

    <div>2016年慕课网新年特献</div>

    </div>


    <div id="page2">

    <div></div>

    <div></div>

    <div></div>

    </div>


    <div id="page3">

    <div></div>

    <div></div>

    <div></div>

    <div></div>

    <div></div>

    <div></div>

    </div>

    </body>

  • Angel丶Gy
    2016-07-22 15:43:29

    html 代码也贴出来