4-3练习, 麻烦老师看下有没有什么问题

来源:4-3 编程练习

voating

2018-01-30 15:25:51

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
<title></title>
<style type="text/css">
   *{margin:0px;padding:0px;}
   body{
      background:url(http://climg.mukewang.com/59c9f7ce0001839219034033.png) top no-repeat;
      width:100%;
      height:4300px;
      
   }
   
   .pic1{
       width:208px;
       height:246px;
       background:url(http://climg.mukewang.com/5a3383d00001a3dd02240364.png);
       position:fixed;
       top:50%;
       margin-top:-123px;
       cursor:pointer;
       
   }
   .pic2{
       width:208px;
       height:246px;
       background:url(http://climg.mukewang.com/5a3383c70001f1b702240364.png);
       position:fixed;
            top:50%;
            right:0;
            margin-top:-123px;
            cursor:pointer;
 
            
   }     
      
   
</style>
</head>
<body>
    <div class="pic1"> </div>
    <div class="pic2"></div>
</body>
</html>


写回答

3回答

nancysun

2018-02-05

图片尺寸224*364

0

怎么都被占用了呢

2018-01-30

这个题主要查考的是固定定位,图片的宽高适当即可,不做强制要求的。祝学习愉快!

0

怎么都被占用了呢

2018-01-30

可以呢,继续加油吧~~

0
haDaDaLa
h 他的图片宽度不是不对吗?
h018-01-30
共1条回复

0 学习 · 36712 问题

查看课程