下頁http://ada.kiexpro.com/test2/map.html 我說:爲什麼Chrome會忽略我的CSS選擇器?
white-space: normal;
來包裝從谷歌地圖API來提供版權文本。 它工作在FF和IE瀏覽器而Chrome卻似乎忽視了CSS選擇器:
global.css中:
#cm_map span {
white-space: normal !important;
}
下頁http://ada.kiexpro.com/test2/map.html 我說:爲什麼Chrome會忽略我的CSS選擇器?
white-space: normal;
來包裝從谷歌地圖API來提供版權文本。 它工作在FF和IE瀏覽器而Chrome卻似乎忽視了CSS選擇器:
global.css中:
#cm_map span {
white-space: normal !important;
}
谷歌已經與周圍的版權內容內嵌樣式匿名股利。只有我能看到的鉤子是它是「logocontrol」div的兄弟。要覆蓋,你可以試試下面的:
#cm_map #logocontrol + div[style] {
left: auto !important;
line-height: 13px;
right: 5px;
bottom: 6px !important;
white-space: normal;
width: 95%;
}
沒有徹底測試,但這樣的事情應該工作。
這也可能是Chrome中的一個錯誤:white-space normal !important
不覆蓋nowrap
。
我報這個錯誤在http://code.google.com/p/chromium/issues/detail?id=89573,但是基於它們是如何completely ignoring a more important issue since 2009,我有這個固定希望不大。