.header_top { margin:0 auto; width:960px; height:90px; clear:both;}
.header_logo { width:215px; height:105px; background:url(../m_imgs/header_logo.gif) no-repeat 20px 10px; float:left;}
.header_logo .logolink { display:block; width:215px; height:105px;}
.header_banner { margin:5px 0 0 0; padding:1px; border:1px solid #CCCECB; width:728px; height:90px; float:right;}
LOGO图片路径正确 为什么网站不显示LOGO?在线求救?
答案:2 悬赏:80 手机版
解决时间 2021-03-18 15:38
- 提问者网友:山高云阔
- 2021-03-18 07:47
最佳答案
- 五星知识达人网友:荒野風
- 2021-03-18 08:33
仅从css代码上来看,属性没错,如果可能有错的话,从代码上看来,可能是css命名有错误:
1,header_top宽度是960px而且是居中对齐的;
2,header_logo宽度是215px,左浮动,header_banner宽度是728px,右浮动。两者宽度加起来是943px,差不多是960px,而且在一行里面。
我估计,header_logo和header_banner都是嵌套在header_top层里面,前面都要加上".header_top”,但是问题出来了:
header_top的高度只有90px;header_logo的高度是105px,而header_banner的高度却是95px。
而且你的header_top又有清除浮动。
或者外面嵌套的不是header_top层,再或者外面没有嵌套层,纠结中,不知道你的属于啥情况。
1,header_top宽度是960px而且是居中对齐的;
2,header_logo宽度是215px,左浮动,header_banner宽度是728px,右浮动。两者宽度加起来是943px,差不多是960px,而且在一行里面。
我估计,header_logo和header_banner都是嵌套在header_top层里面,前面都要加上".header_top”,但是问题出来了:
header_top的高度只有90px;header_logo的高度是105px,而header_banner的高度却是95px。
而且你的header_top又有清除浮动。
或者外面嵌套的不是header_top层,再或者外面没有嵌套层,纠结中,不知道你的属于啥情况。
全部回答
- 1楼网友:我住北渡口
- 2021-03-18 09:47
额
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯