Stil taşmasıX Özellik
Örnek
Metin, öğenin içerik alanını aşıyorsa yatay olarak kaydırın:
document.getElementById("myDIV").style.overflowX = "scroll";
Tanım ve Kullanım
overflowX özelliği, içeriğin sol/sağ kenarlarıyla ne yapılacağını belirtir - eğer öğenin içerik alanından taşarsa.
İpucu: Üst ve alt kenarlardaki kırpmayı belirlemek için overflowY özelliğini kullanın .
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
overflowX | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
overflowX özelliğini döndürün:
object.style.overflowX
overflowX özelliğini ayarlayın:
object.style.overflowX = "visible|hidden|scroll|auto|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
visible | The content is not clipped, and it may be rendered outside the content box |
hidden | The content is clipped - and no scrolling mechanism is provided |
scroll | The content is clipped and a scrolling mechanism is provided |
auto | Should cause a scrolling mechanism to be provided for overflowing boxes |
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: | görünür |
---|---|
Geri dönüş değeri: | Bir elemanın taşma-x özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: overflow-x özelliği
❮ Stil Nesnesi