Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the resize attribute in CSS3

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the resize attribute in CSS3, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand it.

Example

Specify a div element that allows the user to resize:

Div

{

Resize:both

Overflow:auto

}

Browser support

The number in the table represents the first browser version number that supports the property.

The number immediately before-webkit-,-ms- or-moz- is the first browser version number that supports the prefix attribute.

Property resize4.0 is not compatible with 5.04.0-moz-4.015.0

Attribute definition and usage instructions

The resize attribute specifies whether an element is resized by the user.

Note: the resize attribute is used to calculate whether the overflow value of other elements is "visible".

Default: none inheritance: no version: CSS3JavaScript syntax: object.style.resize= "both"

Grammar

Resize: none | both | horizontal | vertical:

Value describes that the none user cannot resize the element. Both users can adjust the height and width of the element. Horizontal users can adjust the width of the element. Vertical users can adjust the height of the element. Thank you for reading this article carefully. I hope the article "how to use resize attributes in CSS3" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report