In CSS3 resize property

Description:

a resize attribute specifies whether the element is resized by the user.

grammar:

resize:none | both | horizontal | vertical

  • none: a user can not adjust the size of the element (the default)
  • both: the user can adjust the height and width of the element
  • horizontal: user adjustable element width
  • The user may adjust the height of the element: vertical

example:

<! DOCTYPE HTML> 
<HTML> 
<head> 
<Meta charset = "UTF-. 8"> 
<title> resize </ title> 
<style>  
div 
{ 
    border: 2px Solid; 
    padding: 10px 40px; 
    width: 300px by; 
    a resize : both; 
    overflow: Auto; 
}
 </ style> 
</ head> 
<body> 

<P> <B> Note: </ b> Firefox, Safari , and Chrome compatible resize attribute </ P>. 

<div> tuning properties Specifies whether the element is a resizable by the user. </ div> 

</ body> 
</ HTML>

Reprinted from: rookie tutorial https://www.runoob.com/cssref/css3-pr-resize.html

 

 

Guess you like

Origin www.cnblogs.com/planetwithpig/p/11801566.html