首页 > 解决方案 > 如何使用按钮创建链接以更改页面并更改新页面的背景颜色

问题描述

我有一个按钮列表来改变背景颜色的工作,但我想链接一个页面,而不是改变加载页面的颜色。我的代码在 Blogger 中运行,模板是 Soho。

我的代码如下:

<style>
.hamburger-menu {
display:none !important;
}

.sidebar-container {
display:none !important;
width: 0px !important;
max-width: 0px !important;
}

.sidebar-container .sidebar_bottom {
width: 0px !important;
max-width: 0px !important;
}

.page_body .centered {
max-width:100%;
}

.page_body {
margin-left:0px;
}

.sticky {
padding-left:0px;
}

body.collapsed-header .page_body .centered-top-container {
padding-left:0px;
}
</style>

要查看效果,只需单击浅绿色按钮matematica sqrt,应使检索的页面保持绿色,但它会为背景着色,而不是检索页面。

非常感谢

标签: bloggerblogger-dynamic-viewsgoogle-blogger-api

解决方案


推荐阅读