小白教程
所有教程
关于
Search
172.70.100.101
172.70.100.101
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr outline width”的源代码
本页内容
上一节:
Pr_outline_style
下一节:
Css3_pr_border_image
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:outline-width}}[[Category:css reference|71]] = CSS outline-width 属性 = 设置轮廓的宽度: <sample title="" desc="" lang="html" hererun="1"> p { outline-style:dotted; outline-width:5px; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p.one { border:1px solid red; outline-style:solid; outline-width:thin; } p.two { border:1px solid red; outline-style:dotted; outline-width:3px; } </style> </head> <body> <p class="one">This is some text in a paragraph.</p> <p class="two">This is some text in a paragraph.</p> <p><b>注意:</b> 如果只有一个 !DOCTYPE 指定 IE8 支持 outline 属性。</p> </body> </html> </run> == 属性定义及使用说明 == outline(轮廓)是绘制于元素周围的一条线,位于边框边缘的外围。 outline-width指定轮廓的宽度。 '''注意:''' 请始终在outline-width属性之前声明outline-style属性。元素只有获得轮廓以后才能改变其轮廓的宽度。 {| class="table table-striped table-hover" | 默认值: | medium |- | 继承: | no |- | 版本: | CSS2 |- | JavaScript 语法: | object.style.outlineWidth="thin" |} == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | outline-width | 1.0 | 8.0 | 1.5 | 1.2 | 7.0 |} == 提示和注释 == outline是围绕元素。它是围绕元素的边距。但是,它是来自不同的边框属性。 outline不是元素尺寸的一部分,因此元素的宽度和高度属性不包含轮廓的宽度。 == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | thin | 规定细轮廓。 |- | medium | 默认。规定中等的轮廓。 |- | thick | 规定粗的轮廓。 |- | length | 允许您规定轮廓粗细的值。 |- | inherit | 规定应该从父元素继承轮廓宽度的设置。 |} == 相关文章 == CSS 教程: [[css outline|CSS Outline]] CSS 参考手册: [[pr outline|outline 属性]]
返回至“
Pr outline width
”。
上一节:
Pr_outline_style
下一节:
Css3_pr_border_image