Stile proprietà textOverflow
Esempio
Modifica la proprietà textOverflow:
document.getElementById("myDIV").style.textOverflow = "ellipsis";
Definizione e utilizzo
La proprietà textOverflow specifica cosa dovrebbe accadere quando il testo eccede l'elemento contenitore.
Supporto browser
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà textOverflow:
object.style.textOverflow
Imposta la proprietà textOverflow:
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | clip |
---|---|
Valore di ritorno: | Una stringa, che rappresenta la proprietà di overflow del testo di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà di overflow del testo
❮ Oggetto stile