Stil temizle Özellik
Örnek
Bir öğede metnin sol tarafında kayan nesneleri yasakla:
document.getElementById("demo").style.clear = "left";
Tanım ve Kullanım
clear özelliği, öğenin konumunu kayan nesnelere göre ayarlar veya döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
clear | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
clear özelliğini döndürün:
object.style.clear
clear özelliğini ayarlayın:
object.style.clear = "none|left|right|both|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
none | Allows floating objects on both sides of the element. This is default |
left | No floating objects allowed on the left side of the element |
right | No floating objects allowed on the right side of the element |
both | No floating objects allowed on either the left or right side of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Teknik detaylar
Varsayılan değer: | Yok |
---|---|
Geri dönüş değeri: | Bir elemanın yüzen nesnelere göre konumunu temsil eden bir Dize |
CSS Sürümü | CSS1 |
Daha fazla örnek
Örnek
clear özelliğini döndürün:
alert(document.getElementById("demo").style.clear);
İlgili Sayfalar
CSS eğitimi: CSS Float
CSS referansı: özelliği temizle
❮ Stil Nesnesi