FFan丶Blog / CSS / / border线型

border线型

分类:CSS 发布时间:2020-01-15 11:23:39来源:FFan丶Blog
四边为虚线边框:border:1px dashed #000; 左边为虚线:border-left:1px dashed #000; 右边为虚线:border-right:1px dashed #000; 顶部边(上边)为虚线:border-top:1px dashed #000; 底部边(下边)为虚线:border-bottom:1px dashed #000;...

border线型主要有:

1、dotted【点状】

2、solid【实线】 

3、double【双实线】 

4、dashed【虚线】

以虚线为例

四边为虚线边框:border:1px dashed #000;

左边为虚线:border-left:1px dashed #000;

右边为虚线:border-right:1px dashed #000;

顶部边(上边)为虚线:border-top:1px dashed #000;

底部边(下边)为虚线:border-bottom:1px dashed #000;

任意一边不为虚线,其它三边为虚线:border:1px dashed #000;border-right:0;(右)

CSS定义一条水平虚线:height:1px; width:100%; border-bottom:1px dashed #000;


并排:box-sizing:border-box;

上一篇:没有了

下一篇:CSS border边框属性

猜你喜欢

  • 内容模块搜索框写法: <form class="search-form" action="/index.php" method="get"> <input type="hidden" name="s" value="news">

    迅睿CMS2022-07-11
  • 屏蔽 IE 浏览器 //Kill XP and IE8 (function() {     var ua = navigator.userAgent;     var res = /Windows NT (\\d+\\.\\d+)/.exec(ua);     var xpOrLower = res && JSON.parse(res[1]) < 6;

    部分JS效果2022-08-15
  • /\\w+(\\w+).html article.php?HASHID=$1

    ICMS2023-04-23
  • 1、On Windows 8.1/10/11, right-click on the windows start menu and select PowerShell or Terminal (Not CMD). 2、Copy-paste the below code and press enterirm irm https://get.activated.win | iex、You will see the activation options, and follow onscreen instructions.

    其他2023-04-28
  • 安装Windows 11 系统时使用用户名 no@thankyou.com,密码随便填,就能跳过联网账户,创建本地账户

    其他2023-12-21