border

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

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

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

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

vi.近似,毗邻

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

bottom

英 [ˈbɒtəm]   美 [ˈbɑ:təm]  

n.底部;末端;臀部;尽头

adj.底部的

vt.装底;测量深浅;查明真相

vi.到达底部;建立基础

第三人称单数: bottoms 复数: bottoms 现在分词: bottoming 过去式: bottomed 过去分词: bottomed

css border-bottom属性 语法

作用:把下边框的所有属性设置到一个声明中。

语法:可以按顺序设置如下属性:border-bottom-width,border-bottom-style,border-bottom-color,如果不设置其中的某个值,也不会出问题,比如 border-bottom:solid #ff0000; 也是允许的。

说明:border-bottom-width    规定下边框的宽度。border-bottom-style    规定下边框的样式。border-bottom-color    规定下边框的颜色。inherit    规定应该从父元素继承 border-bottom 属性的设置。    

注释:IE7 以及更早版本的浏览器不支持值 "inherit"。IE8 需要 !DOCTYPE。IE9 支持 "inherit"。

css border-bottom属性 示例

<html>
<head>
<style type="text/css">
p 
{
border-style:solid;
border-bottom:thick dotted #ff0000;
}
</style>
</head>

<body>
<p>This is some text in a paragraph.</p>
</body>

</html>

运行实例 »

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

热门推荐

最新文章