Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Thuộc tính CSS height

height thiết lập chiều cao box. Giá trị: length, %, auto.

Ví dụ

<html>
    <head></head>
    <body>
        <p style="width:200px; height:50px; border:2px solid green; padding:15px; margin:20px;">
            This paragraph is 200pixels wide and 50 pixels high
        </p>
    </body>
</html>