1.左上角小三角标
1.1 实现效果图:
1.2 完整代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>左上角小三角标定位</title>
<style>
.demo{
width: 50em;
height: 20em;
margin: auto;
text-align: center;
}
.top1{
position:absolute;
}
.cat{
width: 25em;
}
</style>