如何用css写以下样式

查看:70
本文介绍了如何用css写以下样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

如何用css写以下样式,向下的小三角都是没有填充色的,只有边

解决方案

<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="UTF-8">
<title>Document</title>
<style>
    .box{width: 200px;height: 100px;border: 1px solid blue;position: relative;border-radius: 5px;}
    span{width: 10px;height: 10px;border-left: 1px solid blue;border-bottom: 1px solid blue;display: block;position: absolute;bottom: -6px;left: 50%;transform:rotate(-45deg);background: #fff;}
</style>

</head>
<body>

<div class="box">
    <span></span>
</div>

</body>
</html>

这篇关于如何用css写以下样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆