我在演示中将 ul 元素和箭头放在一起时遇到问题。我不能在它们<div id="ytplayer_div2"></div>
之间放置标签,<ul>
因为带有 id 的元素ytplayer_div2
来自演示页面源下方的 javascript 端。即使我被放了这些,我也想不出任何解决方案。
标签内的内容<div id="ytplayer_div2"></div>
来自哪里:
function ytplayer_render_playlist( )
{
for ( var i = 0; i < ytplayer_playlist.length; i++ )
{
var img = document.createElement( "img" );
img.src = "track_arrow.gif";
var a = document.createElement( "a" );
a.href = "#ytplayer";
a.onclick = (
function( j )
{
return function( )
{
ytplayer_playitem = j;
ytplayer_playlazy( 0 );
};
}
)( i );
a.appendChild( img );
document.getElementById( "ytplayer_div2" ).appendChild( a );
}
}