logo被锁定宽高限制,230*50。请问PHP网页高手们,下面的代码我要怎么改才能修改高度? 5
#main{width:950px;margin:0auto;}#right{width:205px;float:right;overflow:hidden;}#left...
#main{ width:950px; margin:0 auto;}
#right{width:205px; float:right;overflow:hidden;}
#left{width:740px; float:left; overflow:hidden;}
#right2{width:740px; float:right; overflow:hidden}
#left2{width:205px; float:left;overflow:hidden;}
#header{ width:100%; height:30px; margin:0 auto; background:url(../images/commbg.gif) repeat-x 0 0;}
#footer{ height:100px; margin:0 auto; width:950px; border-top:1px solid #ddd; padding-bottom:20px;}
#footer .renzheng{ width:auto; text-align:center; margin:10px auto; height:50px;}
#footer .tj{ text-align:center;}
.header_left{ float:left; padding-left:10px; line-height:28px;}
.header_right{ float:right; margin-right:10px; line-height:28px;}
.navtop{ width:950px;margin:15px auto; margin-bottom:0px; height:60px;}
.logo{ float:left; width:230px; margin-top:0px; overflow:hidden;}
.logo a {display:block; width:230px; }
.searchbox{ float:right; width:522px; margin-top:0px; margin-right:1px}
.s-nav{ position:relative; font-size:12px; z-index:2; width:300px; height:20px}
.s-nav .y{ color:#000; display:block; width:56px; height:20px; background:url(../images/baobei-bg.gif); text-align:center; font-weight:bold; height:20px; line-height:20px; cursor:pointer; float:left}
.s-nav a.y:hover{ color:#000}
.s-nav .n{ display:block; width:56px; height:20px; text-align:center; height:20px; line-height:20px; cursor:pointer; float:left; color:#005ed9}
.s-nav a.n:hover{ color:#F60}
.box{background:url(../images/box-left.gif) no-repeat; width:520px; height:33px; padding-left:4px; position:relative; top:-1px; z-index:1}
.box-middle{display:block; float:left; width:516px; height:33px; background:url(../images/box-middle.gif) repeat-x; padding-top:3px}
.box-right{display:block; float:left; background:url(../images/box-right.gif) right no-repeat; width:3px; height:33px}
.box .s-txt{ height:18px; width:379px; float:left; position:relative; top:0px; border:0px; color:#bababa; background:url(../images/s-txt-bg.gif) no-repeat 5px 5px; padding-left:25px; font-size:12px; padding-top:7px}
.s-hot{ font-size:12px; margin-top:5px; margin-left:5px; background:url(../images/s-hot-bottom.gif) bottom left no-repeat; height:25px; line-height:25px}
.s-hot a{margin-left:5px; width:630px;}
.s-hot a:link{ color:#000; text-decoration:none; margin-left:5px}
.s-hot a:hover{ color:#F60; text-decoration:underline;}
.s-hot a:visited{ color:#000; text-decoration:none;} 展开
#right{width:205px; float:right;overflow:hidden;}
#left{width:740px; float:left; overflow:hidden;}
#right2{width:740px; float:right; overflow:hidden}
#left2{width:205px; float:left;overflow:hidden;}
#header{ width:100%; height:30px; margin:0 auto; background:url(../images/commbg.gif) repeat-x 0 0;}
#footer{ height:100px; margin:0 auto; width:950px; border-top:1px solid #ddd; padding-bottom:20px;}
#footer .renzheng{ width:auto; text-align:center; margin:10px auto; height:50px;}
#footer .tj{ text-align:center;}
.header_left{ float:left; padding-left:10px; line-height:28px;}
.header_right{ float:right; margin-right:10px; line-height:28px;}
.navtop{ width:950px;margin:15px auto; margin-bottom:0px; height:60px;}
.logo{ float:left; width:230px; margin-top:0px; overflow:hidden;}
.logo a {display:block; width:230px; }
.searchbox{ float:right; width:522px; margin-top:0px; margin-right:1px}
.s-nav{ position:relative; font-size:12px; z-index:2; width:300px; height:20px}
.s-nav .y{ color:#000; display:block; width:56px; height:20px; background:url(../images/baobei-bg.gif); text-align:center; font-weight:bold; height:20px; line-height:20px; cursor:pointer; float:left}
.s-nav a.y:hover{ color:#000}
.s-nav .n{ display:block; width:56px; height:20px; text-align:center; height:20px; line-height:20px; cursor:pointer; float:left; color:#005ed9}
.s-nav a.n:hover{ color:#F60}
.box{background:url(../images/box-left.gif) no-repeat; width:520px; height:33px; padding-left:4px; position:relative; top:-1px; z-index:1}
.box-middle{display:block; float:left; width:516px; height:33px; background:url(../images/box-middle.gif) repeat-x; padding-top:3px}
.box-right{display:block; float:left; background:url(../images/box-right.gif) right no-repeat; width:3px; height:33px}
.box .s-txt{ height:18px; width:379px; float:left; position:relative; top:0px; border:0px; color:#bababa; background:url(../images/s-txt-bg.gif) no-repeat 5px 5px; padding-left:25px; font-size:12px; padding-top:7px}
.s-hot{ font-size:12px; margin-top:5px; margin-left:5px; background:url(../images/s-hot-bottom.gif) bottom left no-repeat; height:25px; line-height:25px}
.s-hot a{margin-left:5px; width:630px;}
.s-hot a:link{ color:#000; text-decoration:none; margin-left:5px}
.s-hot a:hover{ color:#F60; text-decoration:underline;}
.s-hot a:visited{ color:#000; text-decoration:none;} 展开
1个回答
展开全部
首先说明一下。这是CSS,跟PHP没有直接关系。而且 你只给出CSS样式了。我通过类名判断.logo是LOGO的样式类
加上如下代码:
.logo{ float:left; width:230px; margin-top:0px; overflow:hidden;height:240px;}
//添加了一条height:240px; 高度需要自己调整 数值+px(像素)
又不懂可以继续追问。
加上如下代码:
.logo{ float:left; width:230px; margin-top:0px; overflow:hidden;height:240px;}
//添加了一条height:240px; 高度需要自己调整 数值+px(像素)
又不懂可以继续追问。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
景联文科技
2024-06-11 广告
2024-06-11 广告
景联文科技是一家专业AI数据标注公司。目前在全国范围拥有四个大型数据处理基地,智能标注平台涵盖标注工作台和产能管理体系,提供完整的语音、图像、文本、视频的全领域数据处理能力,通过ISO9001、ISO27001、ISO27701等国际认证,...
点击进入详情页
本回答由景联文科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询