div を含むボタンを押すと、タブ (閉じることもできます) を生成しようとしています。現在、divを生成するために使用しているものは次のとおりです。
function addStream(name) {
if ($("#stream_"+name)[0]!=null) { return; };
var d=$("<div></div>");
$(d).attr("id", "stream_"+name);
$(d).attr("class", "container_small");
$(d).append("<iframe width='560' height='340' style='border: 0; outline=0' frameborder='0' scrolling='no' src='http://cdn.livestream.com/embed/"+name+"?layout=4&height=340;width=560&autoplay=false'></iframe>");
$(d).append("<iframe width='300' height='340' style='border: 0; outline=0' frameborder='0' scrolling='no' src='http://cdn.livestream.com/embed/"+name+"?layout=6&height=400&width=300&showTimestamp=true'></iframe>");
$(d).append("<br><div style=\"display: inline-block; margin: 4px;\"><input type=\"button\" value=\"close\" onclick='removeStream(\""+name+"\")'></input></div>");
$("#view").append(d);
}
閉じることができるタブ内のこの情報が好きです。私の最低限の知識ですみません。まだ勉強してる。