1

現在開発中の Web ページで IE 8 を使用してテキストを強調表示すると、フォントが変更されたり、場合によってはサイズが変更されたりします。メニューにカーソルを合わせると、同じことが時々起こります。

これは私の css がどのように見えるかで、エラーが発生する理由がわかりません。非常に奇妙なもう 1 つのことは、osx に Windows 7 を Parallels と共にインストールしたところ、エラーは発生せず、PC コンピューターでのみ発生することです。フォントを変更してみましたが、だめでした...

これは私のcssです:

body {
    font-family: verdana, sans-serif;
    font-size: 14px;
}

#wrapper, .wrapper {
    width: 900px;
    padding: 0 30px;
    margin-left: auto;
    margin-right: auto;
}

#header {
    background: url('http://localhost:8888/wp-content/uploads/2012/09/120920_scam_banner.jpg') no-repeat;
    height: 150px;
    margin: 20px 0;
}

#header div {
    width: 900px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background: none;
}

#header div a {
    text-indent: -9999px;
    position: absolute;
    width: 900px;
    height: 150px;
}



#header div a:hover {
    background: none;
}

#section {

}

#menu {
    float: left;
    width: 175px;
    padding: 20px 25px 0 0;
    border-right: 2px solid #000;
    text-align: right;
}

#menu a, a {
    color: #000;
    text-decoration: none;
}

.mp-formdiv {
    float: right;
}

img {
    border: 1px solid #000;
}

#menu a:hover, a:hover {
    color: #fff;
    background: #000;
}

.menu li {
    margin: 3px 0;
    text-align: right;
}

#menu h3 {
    line-height: 52px;
}

#menu .artists {
    padding-left: 10px;
}

#menu-artists li {

}

#content {
    float: right; 
    width: 670px;
    padding: 20px 0 50px 20px;
}

#footer {
    overflow:hidden;
    clear: both;
}

#white_footer {
    float: left;
    width: 300px;
    background: #fff;
    height: 20px;
}

#footer_content {
    height: 20px;
}

.store {
    overflow-y: scroll;
}

#the_store {
    margin-top: 10px;
}

/* FONTS */




h1 {
    font-size: 3em;
    margin-bottom: 40px;
    white-space: nowrap;
    line-height: 0%;
}

h1.storefront {
    font-size: 2em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

#content p strong {
    font-weight: bold;
}

#content p img {
    float: left;
    margin: 5px 20px 20px 0;
}

#content p img:after {
    margin-top: 20px;
}

#subscribe_mail input[type=text]{
    width: 85px;
    height: 12px;
    font-size: 0.60em;
    margin-bottom: 5px;
    float: left;
    margin-right: 4px;
}

#subscribe_mail input[type=text]:focus {
    font-size: 0.75em;
}

#subscribe_mail input[type=submit] {
    border: 1px solid #999;
    font-size: 0.75em;
    float: left;
}

.mp-message, .mp-loading {
    font-size: 0.75em;
}

.MailPressFormName {
    display: none;
}

#artist_info {
    display: none;
    margin-top: 40px;
    overflow: hidden;
    clear: both;
}

.more-less {
    background: #000;
    float: left;
    color: #fff;
    padding: 0 2px;
    margin-top: 10px;
}

#artist_less {
    display: none;
}

.gallery-icon a:hover {
    background: none;
}

.gallery dl {
    margin-top: 0 !important;
    margin-bottom: 15px;
}

.gallery dl dd {
    font-size: 0.75em;
}

.newsletterH {
    margin-bottom: 5px;
}
4

1 に答える 1

0

FirefoxのFirebugプラグインを使用して、スタイルがどこから来ているかを確認します。IEは、似たようなことをするあまり使いにくい開発者ツールウィンドウを提供します(これは、スタイルの問題がIEでのみ発生している場合にのみ使用します)。最初に:hoverと:focusのルールを確認します。これらは、ホバーまたは選択で何かが発生する原因になるためです。

于 2012-10-05T14:27:29.063 に答える