答案 0 :(得分:0)
将css添加到主题css文件
.sticky-div {
display: none;
}
@media screen and (max-width: 768px) {
.sticky-div {
display: block;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 30px;
z-index: 10000;
/* set height as you want */
background: #ddd;
/* set color as you want */
}
}
<div class="sticky-div">
<!-- Your content here -->
</div>
在</body>
标记之前添加html。