【发布时间】:2018-01-08 18:04:27
【问题描述】:
最近我整理了一些雨雷达图片, 允许在下雨时立即查看,是或否。
缩小 URL 窗口时,两张图片(并排放置)也会缩小。到目前为止,一切都很好。例如,click here ...
在两张图片中的每一张上,都可以看到一个红色标记,在本例中显示了德国汉堡市附近一个小村庄的确切位置。
但是,当我缩小 URL 窗口时,两个标记(显然)开始移动到其他位置,至少:它们的新位置不再对应于汉堡附近的那个小村庄。
在缩小 URL 窗口时,我正在努力如何将两个标记保持在正确的位置。任何如何解决的建议将不胜感激。
请在下面找到 CSS/HTML 脚本:
<style type="text/css">
.table1 {
width: 100%;
margin-left: auto;
margin-right: auto;
border-width: 6px;
border-style: double;
font-family: verdana;
font-style: normal;
font-weight: bold;
font-size: 120%;
text-align: center;
}
.td1 {
border-width: 6px;
border-style: double;
padding: 5px;
}
.img {
height: auto;
width: 100%;
}
#outer-left {
position:relative;
z-index:0;
}
#outer-right {
position:relative;
z-index:0;
}
.inner-left {
position:absolute;
z-index:1;
bottom: 192px;
right: 115px;
}
.inner-right {
position:absolute;
z-index:1;
bottom: 250px;
right: 161px;
}
</style>
<table class="table1">
<tr>
<td class="td1">Niederschlagsradar West-Europa</td>
<td class="td1">Niederschlagsradar Deutschland</td>
</tr>
<tr>
<td id="outer-left" class="td1">
<img src="http://api.buienradar.nl/image/1.0/RadarMapEU?" height="auto" width="100%" >
<div class="inner-left"><img src="http://mirpir.eu/mark2.gif" alt="Rellingen" /></div>
</td>
<td id="outer-right" class="td1">
<img src="http://www.niederschlagsradar.de/image.ashx?type=loop1stunde&jaar=®io=homepage&tijdid=201112050910&time=" style="float: left; filter: alpha(opacity=90); -moz-opacity: .9; opacity: .9; border-width: 0px; height="auto" width="100% " />
<div class="inner-right"><img src="http://mirpir.eu/mark2.gif" alt="Rellingen" /></div>
</td>
</tr>
</table>
<br><br>
【问题讨论】: