Php 在徽标旁边添加另一个图像-Wordpress
我需要你的帮助。我有: 我需要有在红色框(示例)的形象,旁边的标志。 My header.php: 以及包含徽标的框的css:Php 在徽标旁边添加另一个图像-Wordpress,php,wordpress,wordpress-theming,custom-wordpress-pages,Php,Wordpress,Wordpress Theming,Custom Wordpress Pages,我需要你的帮助。我有: 我需要有在红色框(示例)的形象,旁边的标志。 My header.php: 以及包含徽标的框的css: /* ========================================= Theme Header. ========================================= */ .mainmenucontainer { background:url(images/mainmenu.png) left top repeat
/* ========================================= Theme Header. ========================================= */
.mainmenucontainer {
background:url(images/mainmenu.png) left top repeat-x;
}
#logo {
background:url(images/logo-bg.png) left top repeat-x;
display:flex;
align-items:center;
height:90px;
text-align:left;
}
#logo img {
max-height:95%;
}
.site_ttl {
float:left;
margin:0;
padding:0;
line-height:normal;
color: #fff;
text-transform: none;
}
.headersearch {
float:right;
display:flex;
align-items:center;
height:45px;
margin-right:20px;
}
@media screen and (min-width:1024px) {
.headersearch {
}
}
将现有图像设置为背景元素,可以编辑图像以包含新图像,也可以通过编辑标题代码覆盖图像。改变CSS并不能真正做到这一点(严格说来,这不是真的,你可以用一个伪元素和一些时髦的边距和对齐方式来实现,但那将是一种彻底的攻击)