css下虚线怎么设置

来自:互联网
时间:2021-12-02
阅读:

CSS下虚线怎么设置

可以通过设置border-bottom属性来设置元素的下虚线。下面我们通过示例来看一下,示例如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
p{
    border-bottom:1px dashed black;
    
}
</style>
</head>
<body>
<p>设置下虚线</p>
</body>
</html>

输出结果:

css下虚线怎么设置

返回顶部
顶部