Stil textOverflow Özellik
Örnek
textOverflow özelliğini değiştirin:
document.getElementById("myDIV").style.textOverflow = "ellipsis";
Tanım ve Kullanım
textOverflow özelliği, metin içeren öğeyi aştığında ne olması gerektiğini belirtir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
textOverflow özelliğini döndürün:
object.style.textOverflow
textOverflow özelliğini ayarlayın:
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
clip | Default value. Clips the text |
ellipsis | Render an ellipsis ("...") to represent clipped text |
string | Render the given string to represent clipped text |
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: | klips |
---|---|
Geri dönüş değeri: | Bir öğenin metin taşması özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: metin taşması özelliği
❮ Stil Nesnesi