国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

CSS樣式偏移,如何解決_html/css_WEB-ITnose

來源:懂視網 責編:小采 時間:2020-11-27 15:44:51
文檔

CSS樣式偏移,如何解決_html/css_WEB-ITnose

CSS樣式偏移,如何解決_html/css_WEB-ITnose:{position:relative;display:inline;float:left;margin:0px 4px} CSS 樣式偏移,如何解決 在IE6是這樣. 高版本都正常. 回復討論(解決方案) ie6中的margin要寫成 margin:0px 2px .xxx {margin:0px 2
推薦度:
導讀CSS樣式偏移,如何解決_html/css_WEB-ITnose:{position:relative;display:inline;float:left;margin:0px 4px} CSS 樣式偏移,如何解決 在IE6是這樣. 高版本都正常. 回復討論(解決方案) ie6中的margin要寫成 margin:0px 2px .xxx {margin:0px 2

{position:relative;display:inline;float:left;margin:0px 4px}
CSS 樣式偏移,如何解決

在IE6是這樣.

高版本都正常.


回復討論(解決方案)

ie6中的margin要寫成
margin:0px 2px






不行啊.親


正常的效果是這樣

在IE6下面先做正常后,然后在不同的地方寫兼容

你確定這行代碼導致的嗎?你應該貼全部代碼來讓我測試

偏到上邊了,是不是float到上邊的?

是li的樣式么,那ul的呢,是不是定位問題呀

你確定這行代碼導致的嗎?你應該貼全部代碼來讓我測試

@charset "utf-8";/*********************************************** 橫向主導航條 ***********************************************/.ddsmoothmenu{}.ddsmoothmenu ul{margin:0;padding:0}/*主菜單設置*/.ddsmoothmenu ul li{position:relative;display:inline;float:left;margin:0px 4px}.ddsmoothmenu ul li a{display:block;height:30px;line-height:30px}.ddsmoothmenu ul li a span{display:block;padding:0px 15px}/*主菜單連接效果設置*/.ddsmoothmenu ul li a:link,.ddsmoothmenu ul li a:visited{color:#000}.ddsmoothmenu ul li a:hover{background:url(../images/mainmenu.gif) no-repeat center -30px}.ddsmoothmenu ul li a:hover span{color:#FFF}.ddsmoothmenu ul li a:active{background:url(../images/mainmenu.gif) no-repeat center top}.ddsmoothmenu ul li a:active span{color:#FFF}.ddsmoothmenu ul li a.selected{background:url(../images/mainmenu.gif) no-repeat center -30px}.ddsmoothmenu ul li a.selected span{color:#FFF}/*主菜單當前所在頁面*/.ddsmoothmenu ul li a#menu_selected{background:url(../images/mainmenu.gif) no-repeat center top}.ddsmoothmenu ul li a#menu_selected span{color:#FFF}/*子集菜單設置*/.ddsmoothmenu ul.menulevel{position:absolute;left:0;display:none;visibility:hidden}.ddsmoothmenu ul.menulevel li{background:none;margin:0px;padding:0px;display:list-item;float:none}.ddsmoothmenu ul.menulevel li a{background:url(../images/mainmenu.gif) repeat-x left -60px;height:26px;line-height:26px;width:180px;padding:0px 5px;margin:0px;border-right:1px solid #999;border-bottom:1px solid #DFDFDF;border-left:1px solid #CCC}/*子集菜單連接效果設置*/.ddsmoothmenu ul.menulevel li ul{top:0}.ddsmoothmenu ul.menulevel li a:link,.ddsmoothmenu ul.menulevel li a:visited{color:#000}.ddsmoothmenu ul.menulevel li a:hover{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}.ddsmoothmenu ul.menulevel li a.selected{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}/*下拉箭頭*/.ddsmoothmenu .downarrowclass{position:absolute;top:12px;right:8px}.ddsmoothmenu .rightarrowclass{position:absolute;top:8px;right:10px}/*陰影*/.ddshadow{position:absolute;left:0;top:0;width:0;height:0;background:url(../images/40.png);z-index:1}.toplevelshadow{/*opacity:0.8*/}* html .ddsmoothmenu{height:1%}/* Holly Hack for IE \*//*Holly Hack for IE7 and below*/* html .ddsmoothmenu ul li a{display:inline-block}/*IE6 hack to get sub menu links to behave correctly*//*********************************************** 縱向主導航條 ***********************************************/.ddsmoothmenu-v{padding:0px 10px 0px 15px}.ddsmoothmenu-v ul{}/*主菜單設置*/.ddsmoothmenu-v ul li{position:relative}.ddsmoothmenu-v ul li a{display:block;height:31px;line-height:31px;vertical-align:middle}.ddsmoothmenu-v ul li a span{display:block;padding:0px 20px}/*主菜單連接效果設置*/.ddsmoothmenu-v ul li a:link,.ddsmoothmenu-v ul li a:visited{background:url(../images/leftmenu.gif) no-repeat center -31px;color:#000}.ddsmoothmenu-v ul li a:hover{background:url(../images/leftmenu.gif) no-repeat center top}.ddsmoothmenu-v ul li a:hover span{color:#FFF}.ddsmoothmenu-v ul li a:active{background:url(../images/leftmenu.gif) no-repeat center top}.ddsmoothmenu-v ul li a:active span{color:#FFF}.ddsmoothmenu-v ul li .selected:link,.ddsmoothmenu-v ul li a.selected:visited,.ddsmoothmenu-v ul li a.selected:active{background:url(../images/leftmenu.gif) no-repeat center top}.ddsmoothmenu-v ul li a.selected span{color:#FFF}/*主菜單當前所在頁面*/.ddsmoothmenu-v ul li a#menu_selected{background:url(../images/leftmenu.gif) no-repeat center top}.ddsmoothmenu-v ul li a#menu_selected span{color:#FFF}/*子集菜單設置*/.ddsmoothmenu-v ul.menulevel{position:absolute;top:0;visibility:hidden;border-top:1px solid #CCC}.ddsmoothmenu-v ul.menulevel li{background:none;margin:0px;padding:0px;display:list-item}.ddsmoothmenu-v ul.menulevel li a{background:url(../images/mainmenu.gif) repeat-x left -60px;height:26px;line-height:26px;width:180px;padding:0px 5px;margin:0px;border-right:1px solid #999;border-bottom:1px solid #DFDFDF;border-left:1px solid #CCC}/*子集菜單連接效果設置*/.ddsmoothmenu-v ul.menulevel li a:link,.ddsmoothmenu-v ul.menulevel li a:visited{color:#000}.ddsmoothmenu-v ul.menulevel li a:hover{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}.ddsmoothmenu-v ul.menulevel li a.selected{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}/*子集菜單連接效果設置*/.ddsmoothmenu-v ul.menulevel li a:link,.ddsmoothmenu-v ul.menulevel li a:visited{color:#000}.ddsmoothmenu-v ul.menulevel li a:hover{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}.ddsmoothmenu-v ul.menulevel li a.selected{background:url(../images/mainmenu.gif) repeat-x left -90px;color:#034fab;font-weight:bold}/*左側箭頭*/.ddsmoothmenu-v .rightarrowclass{position:absolute;top:10px;right:10px}.ddsmoothmenu-v ul.menulevel .rightarrowclass{position:absolute;top:8px;right:10px}/* Holly Hack for IE \*/* html .ddsmoothmenu-v ul li {float:left;height:1%}* html .ddsmoothmenu-v ul li a {height:1%}

把項目打包發上來吧。沒得調試,難以看出是啥問題。。

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

CSS樣式偏移,如何解決_html/css_WEB-ITnose

CSS樣式偏移,如何解決_html/css_WEB-ITnose:{position:relative;display:inline;float:left;margin:0px 4px} CSS 樣式偏移,如何解決 在IE6是這樣. 高版本都正常. 回復討論(解決方案) ie6中的margin要寫成 margin:0px 2px .xxx {margin:0px 2
推薦度:
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 最新国产网站 | 国产一级成人毛片 | 精品一区二区三区免费毛片爱 | 国精品日韩欧美一区二区三区 | 亚洲日韩欧美一区二区在线 | 欧美日韩国产一区二区三区在线观看 | 亚洲专区欧美 | 免费视频国产 | 亚洲图欧美 | 青青操在线视频 | 99精品在免费线视频 | 一级一级一级毛片 | 亚洲欧美久久精品一区 | 国产久草视频 | 欧美精品第一区 | 成人三级在线 | 欧美一区三区 | 精品国产91乱码一区二区三区 | 久热中文字幕在线精品首页 | 精品国产免费观看一区高清 | 国产在线一区二区三区四区 | 成人久久久 | 日本不卡一区二区三区 最新 | 亚洲一区二区三区精品视频 | 一区二区三区在线播放 | 日韩网站 | 久久亚洲不卡一区二区 | 久久夜色精品国产亚洲 | 欧美精品色精品一区二区三区 | 成人免费国产欧美日韩你懂的 | 四虎影院永久免费 | 日本亚洲国产精品久久 | 欧美国产第一页 | 国产91免费视频 | 激情另类国内一区二区视频 | 久久久网久久久久合久久久久 | 国产日韩欧美一区二区 | 久久伊人免费 | 中文亚洲欧美日韩无线码 | 欧美天天搞 | 欧美亚洲另类综合 |