|
|

楼主 |
发表于 2022-5-10 20:05
|
显示全部楼层
本帖最后由 马黑黑 于 2022-5-10 20:09 编辑
这个是可以把视频放电视里的,有兴趣的自己放。代码:
- <style>
- .tvOuter {
- margin: 20px auto 0;
- width: 720px;
- height: 520px;
- border-radius: 3px;
- background: rgba(0,0,0,.85);
- box-shadow: 0px 0px 2px 4px #000;
- position: relative;
- }
- .tvOuter::before, .tvOuter::after {
- position: absolute;
- content: '';
- width: 30px;
- height: 30px;
- top: 100%;
- left: 20%;
- background: inherit;
- clip-path: polygon(10% 100%,50% 0%,90% 100%,70% 100%,50% 30%,30% 100%);
- }
- .tvOuter::after { left: 80%;}
- .tvInner {
- position: absolute;
- width: 100%;
- height: 100%;
- background: linear-gradient(lightgreen,olive);
- font: bold 80px / 520px sans-serif;
- text-align: center;
- color: rgba(0,200,0,.75);
- text-shadow: 2px 2px 4px rgba(0,0,0,.5);
- }
- .tvInner img { position: absolute; border-radius: 50%; top: 20px; left: 20px; display: none; }
- </style>
- <div class="tvOuter">
- <div class="tvInner">
- HUACHAO TV
- <img id="dl" src="/uc_server/data/avatar/000/00/42/93_avatar_middle.jpg" alt="" />
- </div>
- </div>
- <script>
- let dl = document.querySelector('#dl');
- let tvi = document.querySelector('.tvInner');
- tvi.onmouseover = function(){
- dl.style.display ='block';
- }
- tvi.onmouseout = function(){
- dl.style.display ='none';
- }
- </script>
复制代码
|
|