これは私のリセットスクリプトにあります:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
CSSにこのコードがない限り、私のGoogleコードはコンテンツに合わせて情報ウィンドウのサイズを調整します。試行錯誤の結果、margin:0 を削除すると、スクロールバーが消えてコンテンツが正しく収まり、情報ウィンドウが期待どおりにサイズ変更されることがわかりました。
また、タグのリストから「p」を削除しても機能することがわかりました。そのため、リセット スクリプトでマージンを 0 に設定することはできないと想定しています。
これを解決する方法がわかりません。意味がない!
このコードは実際に機能し、Google マップの情報ウィンドウは問題ありません。
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
p{
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}