适用于IE但不适用于Firefox [英] works with IE but not Firefox

查看:121
本文介绍了适用于IE但不适用于Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在那里,


我使用css作为页面,但它只能在IE浏览器中使用而不是在Firefox中。


DOCTYPE应该是什么我用于firefox。


外部样式表包含以下内容:

body {

background-color:AEB4C0;

border-width:thin;

text-align:left;

}


#container {

margin-left:0px;

margin-top:30px;

text-align:center;

宽度:95%;

}


#work {

身高:400 px

}

..overlap {

float:right;

宽度:450px;

身高:350px;

background-image:url(../ images / background2.gif);

}

..sw {

位置:相对;

顶部:-315;左:0; z-index:2;

}


..center {

margin-top:37.5px;

margin-left:0px;

text-align:center;

}

..box2 {

float:right;

宽度:450像素;

身高:170像素;

background-image:url(../ images / background3.gif);

background-repeat:no-repeat;

text-align:center;

margin-left:0px ;

margin-top:0px;

margin-right:0 px;

margin-bottom:10px;

}

..box {

显示:内联;

宽度:390 px;

身高: 170 px;

background-image:url(../ images / background.gif);

background-repeat:no-repeat;

text-align:center;

margin-left:0px;

margin-top:0px;

margin-right:0 px;

保证金底部:10px;

}

..box,p {

填充:10px;

text-align:justify;

}

..send {

position :相对;

顶部:15px;

左:7px;

显示:内联;


谢谢

hi there,

I used css for a page, it worked but only in IE not in firefox.

What DOCTYPE whould I use for firefox.

the external stylesheet contains the following:
body {
background-color: AEB4C0;
border-width:thin;
text-align:left;
}

#container {
margin-left: 0px;
margin-top:30px;
text-align:center;
width: 95%;
}

#work{
height:400 px
}
..overlap {
float:right;
width: 450px;
height: 350px;
background-image:url(../images/background2.gif);
}
..sw {
position: relative;
top: -315; left: 0; z-index: 2;
}

..center {
margin-top: 37.5px;
margin-left:0px;
text-align:center;
}
..box2 {
float: right;
width: 450 px;
height: 170 px;
background-image:url(../images/background3.gif);
background-repeat:no-repeat;
text-align:center;
margin-left:0px;
margin-top:0px;
margin-right:0 px;
margin-bottom:10px;
}
..box {
display:inline;
width: 390 px;
height: 170 px;
background-image:url(../images/background.gif);
background-repeat:no-repeat;
text-align:center;
margin-left:0px;
margin-top:0px;
margin-right:0 px;
margin-bottom:10px;
}
..box, p {
padding:10px;
text-align:justify;
}
..send {
position:relative;
top:15px;
left:7px;
display:inline;

Thanks

推荐答案

危险的schrieb:
dangerd schrieb:

我用css for一个页面,它工作,但只在IE浏览器而不是在Firefox中。
I used css for a page, it worked but only in IE not in firefox.



验证您的CSS!


-

Johannes Koch

in te domine speravi;非永久性的东西。

(Te Deum,4美分。)

Validate your CSS!

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


3月26日,11:16,Johannes Koch< k。 .. @ w3development.dewrote:
On 26 Mar, 11:16, Johannes Koch <k...@w3development.dewrote:

dangerousd schrieb:
dangerd schrieb:

我用css作为页面,它工作但只在IE浏览器而不是在Firefox中。
I used css for a page, it worked but only in IE not in firefox.



验证您的CSS!


-

Johannes Koch

in te domine speravi;非永久性的东西。

(Te Deum,4美分。)


Validate your CSS!

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)



感谢您的回复Johannes,您能解释一下您的意思吗?

''验证你的css''。


谢谢

Thanks for your reply Johannes, can you explain what you mean by
''validate your css''.

thanks


危险的schrieb :
dangerd schrieb:

感谢您的回复Johannes,您能解释一下您的意思

''验证您的CSS''。
Thanks for your reply Johannes, can you explain what you mean by
''validate your css''.



使用W3C的CSS验证工具

(< http://jigsaw.w3.org/css-validator />)查找代码中的错误。

代码中的错误是导致代码无法呈现的主要原因之一

类似于浏览器。

-

Johannes Koch

in te domine speravi;非永久性的东西。

(Te Deum,4美分。)

Use the W3C''s validation tool for CSS
(<http://jigsaw.w3.org/css-validator/>) to find errors in your code.
Errors in code are one of the main reasons why code is not rendered
similarly in browsers.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


这篇关于适用于IE但不适用于Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆