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

来源:3-3 移动端项目开发----表示层

a_阿怪

2016-07-21 15:59

* {

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%;

}


写回答 关注

3回答

  • 凡芒至尊
    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 代码也贴出来

    凡芒至尊 回复a_阿怪

    请问是怎么解决的???

    2016-10-21 21:49:30

    共 2 条回复 >

HTML5+CSS3实现春节贺卡

又逢新春佳节,春节贺卡搞起来,学会HTML5+CSS3实现春节贺卡

110034 学习 · 450 问题

查看课程

相似问题