CSS Dimension

CSS size

css size (dimension) attribute includes the following aspects

height Set the height of the element.

width Set the width of the element.

max-height Set the maximum height of the element.

max-width Set the maximum width of the element.

min-height Set the minimum height of the element.

min-width Set the minimum width of the element.

line-height Set the line height.

max/min-height/width sets the maximum and minimum height width of the element.

line-height sets the line height, which refers to the top of the first line to the The height of the top of the second row.

Set the height of the element

      

这个段落的高和宽是 100px.

Use percentage to set the height of the image

     



Continuing Learning
||

这个段落的高和宽是 100px.

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!