Original link: https://yf-ch.com/archives/1929.html
HTML code:
<div id="mememe"></div>
CSS:
#mememe { background: url(你的图片地址); background-repeat: no-repeat; width: 100%; height: 100%; position: fixed; background-position: bottom right; bottom: 0; right: 0; z-index: -1 }
The method of use is to add css to the style.css file, and then add the HTML code to the page you need, for example, I added it
index.php
page-archives.php
page.php
post.php
(Just before <?php $this->need(‘footer.php’); ?> on these pages)
The second is the background
<body class="custom-background">
CSS:
body.custom-background { background-image: url('你的地址'); background-repeat: no-repeat; background-position: top left; background-attachment: fixed; background-size:cover }
Instructions
Add css to style.css, and then header.php
The class can be added to the custom-background style!
This article is transferred from: https://yf-ch.com/archives/1929.html
This site is only for collection, and the copyright belongs to the original author.