IE8图像重叠问题(CSS)

时间:2012-03-07 18:29:48

标签: css internet-explorer-8

我有一个网站需要将两个图像放在一起,一个是底图,另一个是带有一些点的透明图像。每个网址都是使用此代码从Json中获取的

Public Function exportMap(ByVal bbox As GenericExtent, Optional ByVal layers As String = "", Optional ByVal transparent As String = "true", Optional ByVal dpi As Integer = 96, Optional ByVal imageSr As String = "") As MapExportResponse



If transparent <> Me.transparent Then
            transparent = Me.transparent
        End If

        Dim link As String

        link = mapServiceUrl & EXPORT_STRING
        link &= EXPORT_BBOX_STRING & bbox.ToRESTstring
        link &= EXPORT_LAYERS_STRING & Me._layers
        link &= EXPORT_LAYERDEFS_STRING & Me._exportLayerDefs
        link &= EXPORT_SIZE_STRING & Me.exportSize
        link &= EXPORT_FORMAT_STRING & Me.exportFormat
        link &= EXPORT_IMAGESR_STRING & imageSr
        link &= EXPORT_TRANSPARENT_STRING & transparent
        link &= EXPORT_DPI_STRING & dpi
        link &= EXPORT_F_STRING

        Dim jsonObj As String = Me.DownloadUTF8String(link)

        Dim jsonExport As MapExportResponse = Json.JsonConvert.DeserializeObject(jsonObj, System.Type.GetType("Beans.restMapService.MapExportResponse"))

        Return jsonExport

    End Function

然后通过此代码添加;

Public Sub buildMapStack(ByRef mapStack As HtmlGenericControl)

        Dim tempImg As HtmlImage
        Dim mapExportResponse As New MapExportResponse
        Me._scale = ""

        For Each tempMap As MapService In Me.mapCollection
            mapExportResponse = tempMap.exportMap(Me.extent)

            If Me._scale Is "" Then
                Me._scale = "1 : " & mapExportResponse.scale.ToString("N")
            End If

            tempImg = New HtmlImage
            tempImg.Alt = mapExportResponse.href
            tempImg.Src = mapExportResponse.href
            mapStack.Controls.Add(tempImg)
        Next

    End Sub

这在Chrome / FF / IE7中运行良好,但在IE8中它无法正常显示第二张图像。

应该如何看待:http://s16.postimage.org/n8x0fbvx1/Map_Correct.png

它在IE8中的外观:http://s7.postimage.org/5b5fwlcaj/Map_In_Correct.png 你可以看到它是如何推向右边的。我不确定为什么会这样做。

有什么建议吗?

0 个答案:

没有答案