【发布时间】:2018-01-26 17:32:48
【问题描述】:
我有两个隐藏的 div,当您单击两个按钮之一时,我将显示无更改为显示块并使视频可播放。
.row.hidden.overflowHidden(data-park="hollywood")
.col2-3.title(style="padding:0px;")
div(style="padding:27px;")
h3 Get the star treatment!
h2 Universal Studios Hollywood™
//- .videoContainer.mobilehide
//- iframe( class="videoClass mobilehide" src='https://www.youtube.com/embed/xRUDijZgyHc?rel=0', frameborder='0', allowfullscreen='')
div
iframe( height="400" width="100%" src='https://www.youtube.com/embed/xRUDijZgyHc?rel=0', frameborder='0', allowfullscreen='')
.details.col1-3
div
h4 You could win a 3-night trip for four.
p Prize includes:
ul
li Round-trip airfare to Los Angeles, California
li Ground transportation between the airport and hotel in Los Angeles
li General Admission tickets for four to Universal Studios Hollywood™ theme park
li Hotel accommodations
这是视频示例之一,当我单击另一个链接时,它会将该块转回显示隐藏,下一个视频显示块。但是切换到显示隐藏的那个继续在后面播放。
当用户点击下一个视频并将该视频切换回显示隐藏时,有什么方法可以停止该视频?
【问题讨论】:
-
你能发布格式正确的代码吗?
标签: javascript html css video youtube