The New Year's Day in 2024 is coming, and the Spring Festival is not far away. The festive atmosphere of the festival is getting stronger and stronger. In order to set off the festive atmosphere, we also need to Emlog template Add lantern decoration, add lantern code to your web page, and make the website more festive.
How to Emlog template Add lantern decoration, emlog Template What is the code for adding lanterns to web pages? You also need to put the css Copy the code and html to the emlog template footer php In the file, change the width.
//For css, please modify the page width of 1200px body{overflow-x:hidden} .dengimg{background:url( https://fc.sinaimg.cn/bmiddle/629db12aly1hl70x27ccog208w0ajk0h.gif ) no-repeat; background-size:cover;} .dengleft{position:absolute;left:50%;margin-left: calc(-1200px / 2 - 120px); top:0px;width:180px;z-index: -1;height:200px} .dengright{position:absolute;right:50%;margin-right: calc(-1200px / 2 - 120px); top:0px;width:180px;transform: rotateY(-180deg); height:200px} //Html section <div class="dengleft dengimg"></div> <div class="dengright dengimg"></div>
Disclaimer:
Website: Click Copy to share with friends!
All content resources shared by this website, if not noted, are original by Blueleaf. If you need to reprint, please indicate the source; Please contact us in case of infringement Contact handling 。 Please understand!