我有一个演示。我想像图中一样左对齐红色箭头。但我不知道我该怎么做。顺便说一句,来自 javascript 方面的红色箭头。
function ytplayer_render_playlist( )
{
var arrOfListNodes = Array.prototype.filter.call(document.getElementById('mylist').childNodes, function (e) {return e.tagName === 'LI';});
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 );
arrOfListNodes[i].insertBefore(a, arrOfListNodes[i].firstChild);
}
}