FirefoxとIEでうまくいきますが、何らかの理由でSafariの座っている場所に座っているような色のブロックがあります画像参照)。CSS要素がSafariの予想位置より下に落ちる
私が間違ってやっているのような任意のポインタが、私はしばらくの間、このいじってきたようにいただければ幸いですし、それが仕事を得るように見えることはできません(?)
関連するCSSは次のとおりです:
//the element that represents the button that is floating
//too low in safari:
#addplacebtn {
text-align: center;
margin-top: 0em;
margin-bottom: 0em;
display: inline-block;
width: 35px;
float: right;
background-color: #226083;
}
//the element that is containing the problematic element
#edit-addplacebtn {
height: 45px;
width: 35px;
top: 5px;
}
//the element containing the above element
.tbrow {
height: 35px;
width: 285px;
margin-bottom: 5px;
margin-top: 5px;
}
あなたのHTMLコードは何ですか? –
投稿するjsfiddle –
私の推測では、何らかの理由でボタンがかなり離れてしまっているのです。それ以外にも、 '#include addlinebtn'に' display:inline-block;と 'float:right;'があります。 'float'は' display'が何の効果も持たないことを意味します。たぶん 'float:left;'を試してみてください。また、 '#edit-addplacebtn'を配置しない限り、' top'は効果がありません。 –