0
我試圖在HTML/CSS中製作橫幅。但是,我在其中一個div的邊際存在問題。它在Firefox中完美工作,但不在IE中。CSS IE與Firefox的邊際問題
#lowerText{
float: left;
margin-top: 50px;
margin-left: -185px;
color: rgb(255, 199, 142);
font-family: 'Special Elite', cursive;
font-size: 15px;
text-transform: uppercase;
display:inline;
}
#upperText{
float: left;
margin-left: 20px;
margin-top: -10px;
color: rgb(255, 199, 142);
font-family: 'Special Elite', cursive;
font-size: 30px;
text-transform: uppercase;
display:inline;
}
這是在#lowerText
一個h3
標籤,它說: 「-foo富富巴」。在IE中它只顯示:「oo bar」。該div中的文字必須位於#upperText
之下的特定位置。但#lowerText
中的margin-left: 185px
不顯示在IE中,但它顯示在Firefox中。
我需要做些什麼來解決這個問題?
你可以展示你到目前爲止? http://jsbin.com/ – thirtydot
你是什麼意思,我到目前爲止? – Magnus
我的意思是,你可以製作一個包含HTML/CSS的JS Bin演示文件來重現你的問題。製作演示使我們能夠更輕鬆地回答您的問題。 – thirtydot