在网页设计中通常需要实现倒三角符号的效果,比如下图当当网的搜索框:
那么,我们做出的最终效果是这样的:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.nabla {
width: 0px;
height: 0px;
border-top: 10px solid red;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
</style>
</head>
<body>
<div class="nabla"></div>
</body>
</html>