css**问题

时间:2013.09.11 发布人:weoosfdl51

css**问题

已解决问题

谷歌weoosfdl51用户在2013.09.11提交了关于“2046css**问题”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2025-02-25T17:12:02。希望大家能够帮助她。

详细问题描述及疑问:期待您的答案,你无异于雪中送炭,让我感激涕零 !

希望以下的回答,能够帮助你。

第1个回答

用户名:xielei1230358  

你给第二个#top_tel加个float:left然后top的总宽度要大于430+261+368+132+20,不设宽度也行;跟高度没关系mar祖龙向夜光紧降命肥片gin:0px0px0px0px可以缩写为margin总笑首职李死载轴:0px;一样的话没必要去每个都写,还有,你既然#top_tel{width身套望:261px;height:69px;margin:1**x0px0px来自430px;background:url(/q/1378834404068261/images/TEL.jpg)no-repeat;}
要左边距430px;为什么不把袁么百艺年这个做成这样的,这两个都右漂浮不是更好
<divid="top_tips">565656</div>
<divid="top_tel"></div>
小小的给你改下
#top{background:url(/q/1378834404068261/images/topbj.gif)repeat-x#000000;height:92px;}
#top_logo{width:368px;height:52px;float:问答left;padding:20px0px0px妒什属境行20px;}
#top_tel{width:261px;height:69px;margin-top:1**x;业艺然看很background:ur吗树小控期犯酸举部棉河l(images/TE毫营象纸连六甲苏右答友L.jpg)no-repeat;float:rig声劳少不帮容二接需福ht}
#top_tips{background:url(/q/1378834404068261/i工体笑混帮建右翻石手mages/tips.gif)no-repeattopleft;width:132px;height:18px;float:right;margin:0px;}
网页代码:
<divid="to钱觉似p">
<divid="top_logo"><ahref="#"><imgsrc="images/logo.jpg"border="0"alt="网站LOGO"/></a></div>
<d子ivid="top_tips">56565伯行裂探季急将6</div>
<divid="top_tel"></div>
</div><!--头部结束-->