设置div底部边框阴影

设置div底部边框阴影:

div{
      -webkit-box-shadow:0px 1px 1px #de1dde;
      -moz-box-shadow:0px 1px 1px #de1dde;
      box-shadow:0px 1px 1px #de1dde;
   }

其中,box-shadow:X轴偏移量 Y轴偏移量 [阴影模糊半径] [阴影扩展半径] [阴影颜色] [投影方式]。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,我明白了您的要求。以下是您需要添加到video.html文件中的代码: ```html <div id="videoContainer"> <video id="myVideo"></video> <input type="file" id="fileInput"> <button id="playBtn">播放</button> <button id="fullscreenBtn">全屏</button> </div> <script> const video = document.getElementById('myVideo'); const fileInput = document.getElementById('fileInput'); const playBtn = document.getElementById('playBtn'); const fullscreenBtn = document.getElementById('fullscreenBtn'); const videoContainer = document.getElementById('videoContainer'); // 设置样式 videoContainer.style.borderRadius = '10px'; videoContainer.style.backgroundColor = 'black'; videoContainer.style.boxShadow = '0px 0px 10px 0px rgba(0,0,0,0.75)'; fileInput.style.position = 'absolute'; playBtn.style.position = 'absolute'; fullscreenBtn.style.position = 'absolute'; fileInput.style.bottom = '0'; playBtn.style.bottom = '0'; fullscreenBtn.style.bottom = '0'; playBtn.style.left = '20px'; fullscreenBtn.style.right = '20px'; // 文件选择器事件处理程序 fileInput.addEventListener('change', (event) => { const file = event.target.files[0]; const reader = new FileReader(); reader.readAsDataURL(file); reader.onload = () => { video.src = reader.result; } }); // 播放按钮事件处理程序 playBtn.addEventListener('click', () => { if (video.paused) { video.play(); playBtn.textContent = '暂停'; } else { video.pause(); playBtn.textContent = '播放'; } }); // 全屏按钮事件处理程序 fullscreenBtn.addEventListener('click', () => { if (video.requestFullscreen) { video.requestFullscreen(); } else if (video.webkitRequestFullscreen) { video.webkitRequestFullscreen(); } else if (video.msRequestFullscreen) { video.msRequestFullscreen(); } }); </script> ``` 这段代码会添加一个包含视频、文件选择器和两个按钮的div,以及样式和事件处理程序。您可以根据需要更改样式或修改事件处理程序。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值