css outline-width属性


  翻译结果:

outline

英 [ˈaʊtlaɪn]   美 [ˈaʊtˌlaɪn]  

n.梗概,大纲,提纲,草稿,要点,主要原则;外形,轮廓,轮廓线,轮廓画法,略图(画法)

vt.概述;略述;画轮廓,打草图,描略图

第三人称单数: outlines 复数: outlines 现在分词: outlining 过去式: outlined 过去分词: outlined

width

英 [wɪdθ]   美 [wɪdθ, wɪθ, wɪtθ]  

n.宽度;广度

复数: widths

css outline-width属性 语法

作用:设置元素整个轮廓的宽度。

说明:只有当轮廓样式不是 none 时,这个宽度才会起作用。如果样式为 none,宽度实际上会重置为 0。不允许设置负长度值。

注释:请始终在 outline-width 属性之前声明 outline-style 属性。元素只有获得轮廓以后才能改变其轮廓的颜色。轮廓线不会占据空间,也不一定是矩形。

css outline-width属性 示例

<!DOCTYPE>
<html>
<head>
<style type="text/css">
p.one
{
border:red solid thin;
outline-style:solid;
outline-width:thin;
}
p.two
{
border:red solid thin;
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 时,Internet Explorer 8 (以及更高版本) 才支持 outline-width 属性。</p>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

热门推荐

目录

首页

视频

问答