我在这个问题上待了几天,似乎没有什么对我有用。我正在 WebFlow 上构建这个网页,我也尝试过直接编辑 CSS。
<style>
.lp1divblock {
position: relative;
height: 380px;
margin-top: 10px;
padding: 10px;
border-radius: 10px;
background-image: -webkit-radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
background-image: radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
}
</style>
<div class="lp1divblock">
<div class="lp1vidembed w-embed w-iframe">
<iframe id="myvideo" src="https://player.vimeo.com/video/XXX?api=1&player_id=myvideo&loop=1" width="100%" height="100%" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</div>
<style>
.lp1divblock {
position: relative;
height: 380px;
margin-top: 10px;
padding: 10px;
border-radius: 10px;
background-image: -webkit-radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
background-image: radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
}
.lp1vidembed {
position: static;
min-height: 360px;
}
</style>
<div class="lp1divblock">
<div class="lp1vidembed w-embed w-iframe">
<iframe id="myvideo" src="https://player.vimeo.com/video/XXX?api=1&player_id=myvideo&loop=1" width="100%" height="100%" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</div>
<style>
.lp1divblock {
position: relative;
height: 380px;
margin-top: 10px;
padding: 10px;
border-radius: 10px;
background-image: -webkit-radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
background-image: radial-gradient(circle farthest-side at 50% 50%, #ffeaa7, #47bbcf);
}
.lp1vidembed {
position: static;
min-height: 360px;
}
@media (max-width: 479px) {
.lp1divblock {
position: relative;
display: block;
max-width: 420px;
min-height: 190px;
margin-top: 5px;
margin-right: auto;
margin-left: auto;
}
.lp1vidembed {
position: static;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
max-height: 220px;
max-width: 420px;
}
}
</style>
<div class="lp1divblock">
<div class="lp1vidembed w-embed w-iframe">
<iframe id="myvideo" src="https://player.vimeo.com/video/XXX?api=1&player_id=myvideo&loop=1" width="100%" height="100%" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</div>
有什么帮助吗?