css border-top-width属性


  翻译结果:

border

英 [ˈbɔ:də(r)]   美 [ˈbɔ:rdə(r)]  

n.边界;边;镶边;包边

vt.& vi.与…接界,在…的边上

vt.沿…的边,环绕…,给…镶边

vi.近似,毗邻

第三人称单数: borders 复数: borders 现在分词: bordering 过去式: bordered 过去分词: bordered

top

英 [tɒp]   美 [tɑ:p]  

n.顶,顶部;(箱子)盖,(书页等的)上栏;首席;陀螺

adj.最高的;顶上的;头等的;最大的

vt.形成顶部;达到…的顶端;处于…的最前头;领导

vi.总结;超越;高耸;结束

第三人称单数: tops 复数: tops 现在分词: topping 过去式: topped 过去分词: topped

width

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

n.宽度;广度

复数: widths

css border-top-width属性 语法

作用:设置元素的上边框的宽度。

说明:只有当边框样式不是 none 时才起作用。如果边框样式是 none,边框宽度实际上会重置为 0。不允许指定负长度值。

注释:请始终在 border-top-width 属性之前声明 border-style 属性。元素只有在获得边框之后,才能改变其边框的宽度。

css border-top-width属性 示例

<html>
<head>
<style type="text/css">
p.one 
{
border-style: solid;
border-top-width: 15px
}
p.two 
{
border-style: solid;
border-top-width: thin
}
</style>
</head>

<body>
<p class="one"><b>注释:</b>"border-top-width" 属性如果单独使用的话是不会起作用的。请首先使用 "border-style" 属性来设置边框。</p>
<p class="two">Some text. Some more text.</p>
</body>

</html>

运行实例 »

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

热门推荐

目录

首页

视频

问答