Stil taşmasıY Özellik
Örnek
Metin, öğenin içerik alanını aşıyorsa dikey olarak kaydırın:
document.getElementById("myDIV").style.overflowY = "scroll";
Tanım ve Kullanım
overflowY özelliği, içeriğin üst/alt kenarlarıyla ne yapılacağını belirtir - eğer öğenin içerik alanından taşarsa.
İpucu: Sol ve sağ kenarlardaki kırpmayı belirlemek için overflowX özelliğini kullanın .
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
overflowY | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
overflowY özelliğini döndürün:
object.style.overflowY
overflowY özelliğini ayarlayın:
object.style.overflowY = "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-y özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: taşma-y özelliği
❮ Stil Nesnesi