小白教程
所有教程
关于
Search
172.70.100.208
172.70.100.208
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr dim min width”的源代码
本页内容
上一节:
Pr_dim_min_height
下一节:
Pr_dim_width
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:min-width}}[[Category:css reference|99]] = CSS min-width 属性 = 设置段落的最小宽度: <sample title="" desc="" lang="html" hererun="1"> p { min-width:1000px; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p { min-width:150px; background-color:yellow; } </style> </head> <body> <p>这个段落的最小宽度设置为 150px。</p> </body> </html> </run> == 属性定义及使用说明 == min-width属性设置元素的最小宽度。 '''注意:''' min-width属性不包括填充,边框,或页边距! {| class="table table-striped table-hover" | 默认值: | 0 |- | 继承: | no |- | 版本: | CSS2 |- | JavaScript 语法: | object.style.minWidth="10px" |} == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | min-width | 1.0 | 7.0 | 1.0 | 2.0.2 | 4.0 |} == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | length | 定义元素的最小宽度值。默认值:取决于浏览器。 |- | % | 定义基于包含它的块级对象的百分比最小宽度。 |- | inherit | 规定应该从父元素继承 min-width 属性的值。 |} == 相关文章 == CSS 教程: [[css dimension|CSS Dimension]] CSS 参考手册: [[pr dim max width|max-width 属性]]
返回至“
Pr dim min width
”。
上一节:
Pr_dim_min_height
下一节:
Pr_dim_width