gpt4 book ai didi

css - DXImageTransform.Microsoft.AlphaImageLoader 相对?

转载 作者:太空宇宙 更新时间:2023-11-03 20:23:22 27 4
gpt4 key购买 nike

在 Internet Explorer 中使用 fancybox 时,ASP.Net MVC 疯狂地抛出错误

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='fancybox/fancy_title_over.png',
sizingMethod='scale');

DXImageTransform.Microsoft.AlphaImageLoader src 路径是否像所有其他 css 路径一样相对?

最佳答案

您需要在src 的开头添加一个额外的/:

src='/fancybox/fancy_title_over.png'

如果这不起作用,您可能需要使用绝对 URL。

ColorBox's borders do not display in Internet Explorer:

Some of the example styles provided make use of transparent .PNG files. Alpha transparencies aren't supported by default in IE6, and can cause an undesirable 'black halo' effect in IE7 and IE8 when changing their opacity. ColorBox resolves this by using one of IE's CSS filters. You can see these at the bottom of colorbox.css. The filter src paths are relative to the HTML document (just like an IMG element), while CSS background image paths are relative to the CSS document. In the examples I provide the relative path is the same, but users often change the directory structure once they move the files over to their own host. The filter src path needs to reflect this change with the appropriate relative path or an absolute path. Here is an example that assumes the 'images' folder is in the root directory:

Original CSS with incorrect relative path: .AlphaImageLoader(src=images/internet_explorer/borderTopLeft.png

Corrected relative path: .AlphaImageLoader(src=/images/internet_explorer/borderTopLeft.png

Corrected absolute path: .AlphaImageLoader(src=http://your_domain.com/images/internet_explorer/borderTopLeft.png

Source

关于css - DXImageTransform.Microsoft.AlphaImageLoader 相对?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5008275/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com