Propriedade de redimensionamento de estilo
Exemplo
Faça um elemento <div> redimensionável:
document.getElementById("myDIV").style.resize = "both";
Definição e uso
A propriedade resize especifica se um elemento é ou não redimensionável pelo usuário.
Nota: A propriedade resize se aplica a elementos cujo valor de estouro calculado é algo diferente de "visível".
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Sintaxe
Retorne a propriedade resize:
object.style.resize
Defina a propriedade de redimensionamento:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Valores de propriedade
Value | Description |
---|---|
none | Default value. The user cannot resize the element |
both | The user can adjust both the height and the width of the element |
horizontal | The user can adjust the width of the element |
vertical | The user can adjust the height 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 |
Detalhes técnicos
Valor padrão: | Nenhum |
---|---|
Valor de retorno: | Uma String, representando a propriedade resize de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Referência CSS: propriedade de redimensionamento
❮ Objeto de estilo