边框的样式指的是边框的线条属性,指的是边框采用的是实线效果、短线效果还是其它的线条效果。
border-right-style属性设置的是某一元素的右边框的样式。
语法格式如下:
border-right-style : none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
border-right-style属性适用于所有元素。
border-right-style属性值说明如下:
立即学习“前端免费学习笔记(深入)”;
| 属性值 | 说明 |
|---|---|
| none | 无右边框。 |
| dotted | 右边框由点组成,形成点线效果。 |
| dashed | 右边框由短线组成,形成短线效果。 |
| solid | 右边框是实线。 |
| double | 右边框是双实线,形成双实线效果。 |
| groove | 右边框带有立体效果的沟槽。 |
| ridge | 右边框成脊形。 |
| inset | 右边框内嵌一个立体边框。 |
| outset | 右边框外嵌一个立体边框。 |
只有右边框和元素以及页面其它属性结合在一起的时候,才能真正展现其样式。上表中,groove、ridge、inset以及outset等和右边框颜色结合设置才能达到更好的效果。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>CSS border-right-style属性设置元素的右边框样式实例-www.manongjc.com</title>
<style type="text/css">
<!--
p{width:350px;}
.dotted{border-right-style:dotted;}
.dashed{border-right-style:dashed;}
.solid{border-right-style:solid;}
.double{border-right-style:double;}
.groove{border-right-style:groove;}
.ridge{border-right-style:ridge;}
.inset{border-right-style:inset;}
.outset{border-right-style:outset;}
-->
</style>
</head>
<body>
<p class="dotted">右边框由点组成,形成点线效果。</p>
<p class="dashed">右边框由短线组成,形成短线效果。</p>
<p class="solid">右边框是实线。</p>
<p class="double">右边框是双实线,形成双实线效果。</p>
<p class="groove">右边框带有立体效果的沟槽。</p>
<p class="ridge">右边框成脊形。</p>
<p class="inset">右边框内嵌一个立体边框。</p>
<p class="outset">右边框外嵌一个立体边框。</p>
</body>
</html>
参考阅读:http://www.manongjc.com/article/1189.html
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号