Stil yeniden boyutlandırma Özellik
Örnek
Bir <div> öğesini yeniden boyutlandırılabilir yapın:
document.getElementById("myDIV").style.resize = "both";
Tanım ve Kullanım
resize özelliği, bir elemanın kullanıcı tarafından yeniden boyutlandırılıp boyutlandırılamayacağını belirtir.
Not: Yeniden boyutlandırma özelliği, hesaplanan taşma değeri "görünür"den farklı olan öğeler için geçerlidir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Sözdizimi
Yeniden boyutlandırma özelliğini döndürün:
object.style.resize
Yeniden boyutlandırma özelliğini ayarlayın:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | Yok |
---|---|
Geri dönüş değeri: | Bir öğenin yeniden boyutlandırma özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: özelliği yeniden boyutlandırma
❮ Stil Nesnesi