W3C Hata Çözümleri – iframe element hataları

The scrolling attribute on the iframe element is obsolete. Use CSS instead.

Yaşanan Hatalar

The scrolling attribute on the iframe element is obsolete. Use CSS instead.

The frameborder attribute on the iframe element is obsolete. Use CSS instead.

The allowtransparency attribute on the iframe element is obsolete. Use CSS instead.

Hata iframe etiketi içinde kullanılan klasik şekilde kullandığımız ki alttaki

<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fonlinehdfilmizleyin&amp;width&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;appId=1451955491683861" style="border:none; margin:0; overflow:hidden; height:290px;" scrolling="no" frameborder="0" allowTransparency="true"></iframe>

Bunun yerine alttaki kodu ekleyerek halledebilirsiniz.

[quote]style=”overflow:hidden;”[/quote]

style="overflow:hidden;"

Tabi buna ek olarak şöyle birşeyde oluşturmanız mümkündür. Bir class tanımlarız.


<iframe width="320" height="240" style="border: none; margin: 0; overflow: hidden; height: 290px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fonlinehdfilmizleyin&amp;width&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;appId=1451955491683861" scrolling="no" frameborder="0" allowtransparency="true"></iframe>

.framestili {
border:none;
overflow:hidden;
margin:0;
height:290px;
width:540px;
}

daha sonra atadığımız stili class içinde tanımlarız.

<iframe class="framestili"></iframe>

veya en basit taktiği ile iframe içinde style açıp herşeyi orada tanımlayıp bitirebiliriz.

<iframe style=”border:none; margin:0; overflow:hidden; height:290px;”></iframe>

takıldığın yer olursa çekinmeden konuma yazabilirsiniz.