我在主题的CSS里写logo图片,不过不能显示,始终还是文字logo。
CSS里定义logo图片的一段代码如下:
.logo{font-size:25px;color:#21759b;}
#header{z-index:1;position:relative;margin:10px auto 0;height:220px;}
#header h1{padding:20px 0 0;line-height:40px;text-shadow:1px 1px 2px #999;}
#header h1 a{color:#222;font-size:30px;border-bottom:1px solid #ccc;}
#header h2{color:#222;font-size:12px;padding-left:5px;}
请问要怎么改才能把文字logo替换成图片logo呢?
wordpress主题在CSS里写站点logo图片怎么不显示
答案:2 悬赏:50
解决时间 2021-02-02 18:40
- 提问者网友:娇妻失忆
- 2021-02-02 11:57
最佳答案
- 二级知识专家网友:心痛成瘾
- 2021-02-02 13:28
把注释去掉:之间的都是注释,不起作用
.logo{font-size:25px;color:#21759b;}
#header{z-index:1;position:relative;margin:10px auto 0;height:220px;}
#header h1{line-height:70px;width:320px;background:url("images/logo.png") no-repeat 0 bottom;}
#header h1 a{display:block;border:none;text-indent:-9999em;}
#header h2{padding:0;text-indent:-9999em;}
.logo{font-size:25px;color:#21759b;}
#header{z-index:1;position:relative;margin:10px auto 0;height:220px;}
#header h1{line-height:70px;width:320px;background:url("images/logo.png") no-repeat 0 bottom;}
#header h1 a{display:block;border:none;text-indent:-9999em;}
#header h2{padding:0;text-indent:-9999em;}
全部回答
- 1楼网友:伤口狠精致
- 2021-02-02 14:52
.logo{font-size:25px;color:#21759b;} .你的LOGO没设置背景是吧? 直接插入的。。 给它.logo{}加宽度 高度..
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯