CSS效果,IE6正常显示,IE7无法显示,请高手修改代码~

来源:百度知道 编辑:UC知道 时间:2024/05/31 01:51:42
总共两段代码,一个是下拉菜单。一个是图片变换效果。求高手现身~~
第一段:
<style type="text/css">
/* common styling */
/* set up the overall width of the menu div, the font and the margins */
.menu {
font-family: arial, sans-serif;
width:800px;
margin-top: auto;
margin-right: 0;
margin-bottom: auto;
margin-left: 0;
font-style: normal;
background-position: center center;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
.menu ul {
padding:0;
margin:0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
.menu ul li {
float:left;
position:relative;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
.m

使用CSS hack啊

css现在的浏览器兼容性确实很差,实在没办法你可以用css hack,推荐去CSS黑板报找下答案。

直接百度:CSS黑板报,第一个就是啦~祝你早日解决~!

好像有个IETEST这个软件吧。
里面包含了IE5到IE8,对查找兼容性应该很好吧。

汗,~~你只放了样式代码怎么帮你修改?
你放的代码都不全,看不见你出现的问题,没法调整啊
这样,告诉你个办法你自己试试
满意的话记的给分哈
================================
可以强行用样式控制IE之间对样式的理解
例如
我要IE6认为他内边距为20px;IE7认为内边距30px;火狐浏览器认为内边距40px;(一般我们做页边编辑的只考虑前面几个浏览器的区别,加个IE8,都OK的话其他浏览器都会OK,IE8现在还不算是大众浏览器就不说了;至于为什么只要测试这几个OK其他就OK,这涉及到浏览器内核调用的问题,也不细说了,要说就太多了)
可以这么设置padding-top:40px;*padding-top:30px;_padding-top:20px;
*表示对所有IE浏览器有效;_表示只对IE6有效;不写对所有浏览器有效果;