導(dǎo)航欄中的“首頁(yè)”為什么沒有顯示在左側(cè)
*{ margin:?0px; padding:?0px; font-size:?12px; } body { background-color:#F5F5F5; } .top { width:?100%; height:?27px; background:?url(../images/top_bg.jpg)?repeat-x; } .top_content { width:?1000px; margin:0?auto; } .top_content?li {? list-style-image:?url(../images/li_bg.gif)?; ????float:?right; width:70px; line-height:?27px; } .top_content?a:link,.top_content?a:visited { color:?#8E8E8E; text-decoration:?none; } .top_content?a:hover,.top_content?a:active { color:?#900; text-decoration:?none; } .wrap { width:?1000px; margin:?0?auto; } .logo { height:?80px; background-color:?#FFF; } .logo_left { width:?200px; float:?left; } .logo_right { width:?300px; height:?28px; float:?right; margin-top:?26px; color:?#8E8E8E; } .logo_right?img { vertical-align:?middle; margin-right:?10px; } .tel { font-family:"微軟雅黑"; font-size:?18px; color:?#CC0000; } .nav { height:?40px; } .nav_left { width:?10px; background:?url(../images/nav_left.jpg)?no-repeat; } .nav_mid { width:?980px; background:?url(../images/nav_bg.jpg)?repeat-x; } .nav_right { width:?10px; background:?url(../images/nav_right.jpg)?repeat-x; } .nav_left,.nav_mid,.nav_right { height:?40px; float:?left; } .nav_mid_left,.nav_mid_right { float:?left; } .nav_mid_left { width:?680px; } .nav_mid_right { width:?300px; } .nav_mid_left?li { float:?left; list-style:?none; width:?100px; text-align:?center; line-height:?40px; } .nav_mid_left?a:link,.nav_mid_left?a:visited { text-decoration:?none; color:?#FFF; font-size:?16px; font-family:?"微軟雅黑"; }.nav_mid_left?a:hover,.nav_mid_left?a:active { text-decoration:?none; color:?#FF0; font-size:?16px; font-family:?"微軟雅黑"; } .search_text { width:?190px; height:?25px; margin-top:?7px; background:?url(../images/search.jpg)?no-repeat?right?center; background-color:?#fff; padding-right:?25px; border:?none; }
各位大神請(qǐng)看一下這是怎么回事,在線等
所寫的代碼與與視頻教程相同,但“首頁(yè)”顯示位置不在左側(cè),這是為什么?
2017-02-01
我解決了這個(gè)問題
img會(huì)在結(jié)束位置產(chǎn)生一個(gè)類似于文本的字符 你可以理解為你輸入文字時(shí)候的光標(biāo) 這個(gè)光標(biāo)具有高度 并且受line-height影響 光標(biāo)的最底端位置超出了圖片最底端位置
2017-01-25
我和你出現(xiàn)了同樣的問題
我發(fā)現(xiàn)是因?yàn)?logo img的高度頂出了.logo
我把.logo的高度設(shè)置為83px之后問題解決了
2017-01-20
把你的CSS貼出來看看
2017-01-20
那你應(yīng)該放CSS代碼上來