iPhone标签栏控制图标问题

发布于 2024-08-19 21:36:27 字数 164 浏览 5 评论 0原文

我在使用选项卡栏控件的图标时遇到问题,并且不知道如何修复。 我使用的图标是 png 格式 24*24。

它们有一个灰色渐变背景,中间有一个黑色形状。 我遇到的问题是只显示背景渐变。中间的黑色形状则不然。

我是否使用了错误的格式或其他什么?我在一本书上看到使用png格式尺寸24*24

I have a problem using icons with the tab bar control and I don't know to fix.
The icons I'm using are png format 24*24.

They have a grey gradient background with a black shape in the middle.
The problem I have is that only the background gradient shows. The Black shape in the middle does not.

Have I Used the wrong format or something? I read in a book to use png format size 24*24

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十级心震 2024-08-26 21:36:27

您不能在图标上使用背景。

这些图标被设计为像 alpha 遮罩一样使用,背景将使其看起来像一个填充的正方形。
删除渐变并使用中间带有图标和透明背景的图像。

You can't use a background on your icon.

The icons are designed to be used like an alpha mask and background will make it look like a filled square.
Remove the gradient and use an image with an icon in the middle and a transparent background.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文