Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: iOS下web方式MImage内容不会显示 #1624

Open
bloodxia opened this issue Nov 4, 2023 · 7 comments
Open

[Bug Report]: iOS下web方式MImage内容不会显示 #1624

bloodxia opened this issue Nov 4, 2023 · 7 comments

Comments

@bloodxia
Copy link

bloodxia commented Nov 4, 2023

Masa.Blazor version

1.1.1

Describe the bug

android和PC都是完全正常的,ios下MImage就完全不显示任何内容,如果不用MImage,图片显示就正常(自己用div的background来设置图片)

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

.net7

What browsers are you seeing the problem on?

Chrome, Safari, Microsoft Edge

Additional context

No response

@capdiem
Copy link
Contributor

capdiem commented Nov 4, 2023

@bloodxia 我们也遇到了一样的问题,只是我们暂时用原生img标签来代替了。

@bloodxia
Copy link
Author

bloodxia commented Nov 4, 2023

@bloodxia 我们也遇到了一样的问题,只是我们暂时用原生img标签来代替了。

我用抓包看了一下,ios上图片压根就没有加载,如果加了Lazysrc,则只会显示lazysrc,不会显示原始的图片。主要是如果不用MImage的话,theme就要手动设置了。有些麻烦

@capdiem
Copy link
Contributor

capdiem commented Nov 4, 2023

@bloodxia Image组件好像不受theme影响吧?另外,我想起来,你可以设置Eager属性试试。

@bloodxia
Copy link
Author

bloodxia commented Nov 8, 2023

https://stackoverflow.com/questions/74836373/intersection-observer-api-not-working-in-ios-device-when-opening-a-webview-in-it

这个问题没有解决办法的,这是ios不支持这个特性决定的。

@capdiem
Copy link
Contributor

capdiem commented Nov 9, 2023

@bloodxia 你给 MImage 加 Eager 属性吧。

@ManleyTalk
Copy link

MImage 加 Eager 属性,ipad就能正常显示了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants