首頁 > web前端 > css教學 > 主體

使用 CSS 設定框的最小寬度

PHPz
發布: 2023-09-17 21:41:02
轉載
1390 人瀏覽過

使用 CSS 设置框的最小宽度

min-width 屬性用於設定框的最小寬度。 min-width 屬性的值可以是數字、長度或百分比。

範例

<html>
   <head>
   </head>
   <body>
      <p style = "min-width:400px; height:100px; border:1px solid red; padding:5px; margin:10px;">
         This paragraph is 100px high and min width is 400px
         This paragraph is 100px high and min width is 400px
      </p>
      <img alt = "logo" src = "/css/images/css.gif" width = "100" height = "100" />
   </body>
</html>
登入後複製
#

以上是使用 CSS 設定框的最小寬度的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:tutorialspoint.com
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!