庆祝建党100周年,你换背景了吗?
时间:2021-06-28来源:杨青青博客作者:杨青青
方法:body用css添加一个渐变的红色背景,然后头部放png图片
<div style="text-align: right; width: 1000px;margin: auto;"><img src="https://www.qingqingblog.com/d/file/p/2021/06-28/7d172362fddcc4862f7593b090b990de.png"></div> <style> body { background-image: linear-gradient(180deg,#d3261c,#d3261c 22%,hsla(0,0%,100%,0) 95%,rgba(220,2,0,0)); background-size: contain; } </style>
图片保存→
效果展示:
你觉得文章内容怎么样