我正在尝试将一种方法添加到我的Tumblr页面中,以便单击youtube视频或SoundClouds时,它将打开另一个窗口。我无法弄清楚该如何做。这是我用于SoundCloud的代码示例
<a href="{text:Link Two}" target="_blank"class="links">{text:Link Two Title}</a>
如果要在另一个窗口中打开它,为什么不链接到它而不是使用一个iframe
?iframe
当您希望在特定窗口的特定区域内使用时,可以使用。
尝试这样的事情:
<a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/188684529&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true" target="_blank"></a>
将target
属性设置为_blank
应该会在新窗口中打开链接。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句