1.设置网页背景全屏显示
代码部分
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
.box {
position: absolute;
width: 100%;
height: 100%;
background-color: aqua;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
需要注意的地方:需要进行reset重写来取消边距
运行效果:
应用场景:网页背景,图片背景,背景展示等需要对背景进行强调修改的
2.进行小三角形的绘制
效果:如图所示