慕清海 2021-06-18 17:58 采纳率: 72.2%
浏览 16
已结题

怎么将video挤出去的两个lv2和lv3(两个div内的图片与文字)显示在视频上方

这个是外联的

@charset "UTF-8";

*{padding: 0;

  margin: 0;}

@font-face{

           font-family:书体 ;

           src: url(书体方米字体.ttf);

           }

.lv1{height: 600px;

     width: 1300px;

     border: solid red;

     }

.lv2{width: 450px;

     height: 450px;

     border-radius: 50% 50%;

     border: 10px solid white;

     box-shadow: 5px 5px 15px #000;

     background: url("cd_img.jpg");

     float: left;

     margin-top: 60px;

     margin-left: 130px;

    position: relative;

}

.lv3{width:500px;

     height: 450px;

     float: left;

     margin-top: 130px;

     margin-left: 125px;

}

.lv4{width: 95px;

     height: 95px;

     background: url("yinfu.gif") no-repeat;

     background-size: cover;

     border-radius: 50% 50%;

     border: 5px solid white;

     margin: 175px auto;

     box-shadow: 5px 5px 15px #000;

}

.lv1 .lv3 h1 {

    font-family: 书体;

    font-size: 100px;

}

.lv1 .lv3 p{line-height: 200%;

             margin-left: 20px;

}

这是格式<div class="lv1">
    <video src="麦浪.mp4"  autoplay="autoplay" width="1300" height="600" controls loop></video>
    <div class="lv2">
        <div class="lv4"></div>
    </div>
    <div class="lv3">
        <h1>风中的麦浪</h1>
        <p>爱过的地方 <br/>
        当微风带着收获的味道<br/>
        吹向我脸庞<br/>
        想起你轻柔的话语<br/>
        曾打湿我的眼眶<br/>
        嗯...啦...嗯...啦...<br/>
        我们曾在田野里歌唱 <br/>
        在冬季盼望<br/> 却没能等到阳光下</p >
    </div>
</div>

 

  • 写回答

1条回答 默认 最新

  • Null_Reference 2021-06-18 18:24
    关注
    <html>
    <head>
        <style>
            *{padding: 0;
    
    margin: 0;}
    
    @font-face{
             font-family:书体 ;
    
             src: url(书体方米字体.ttf);
    
             }
    
    .lv1{height: 600px;
    
       width: 1300px;
    
       border: solid red;
      position:relative;
       }
    
    .lv2{width: 450px;
    
       height: 450px;
    
       border-radius: 50% 50%;
    
       border: 10px solid white;
    
       box-shadow: 5px 5px 15px #000;
    
       background: url("cd_img.jpg");
    
    
      position: absolute;
      top:60px;
      left:130px;
    
    }
    
    .lv3{width:500px;
    
       height: 450px;
    
       position: absolute;
      top:130px;
      left:400px;
    }
    
    .lv4{width: 95px;
    
       height: 95px;
    
       background: url("yinfu.gif") no-repeat;
    
       background-size: cover;
    
       border-radius: 50% 50%;
    
       border: 5px solid white;
    
       margin: 175px auto;
    
       box-shadow: 5px 5px 15px #000;
    
    }
    
    .lv1 .lv3 h1 {
      font-family: 书体;
    
      font-size: 100px;
    
    }
    
    .lv1 .lv3 p{line-height: 200%;
    
               margin-left: 20px;
    
    }
        </style>
    </head>
    <body>
        <div class="lv1">
            <video src="麦浪.mp4"  autoplay="autoplay" width="1300" height="600" controls loop></video>
            <div class="lv2">
                <div class="lv4"></div>
            </div>
            <div class="lv3">
                <h1>风中的麦浪</h1>
                <p>爱过的地方 <br/>
                当微风带着收获的味道<br/>
                吹向我脸庞<br/>
                想起你轻柔的话语<br/>
                曾打湿我的眼眶<br/>
                嗯...啦...嗯...啦...<br/>
                我们曾在田野里歌唱 <br/>
                在冬季盼望<br/> 却没能等到阳光下</p >
            </div>
        </div>
        
        
    </body>
    <script>
      
    </script>
    </html>
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月22日

悬赏问题

  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏