输入类型=“图像” (提交按钮)适用于移动设备
我不是移动网页设计专家,我尝试在互联网上查找相关内容。 我发现的唯一一件事是,如果我使用图像按钮并不总是会在手机上可视化。我没有手机可以直接测试来验证真实情况。
我想知道当输入类型=“图像”按钮不可见时,会发生什么情况和情况。
谢谢您的回答!
I am not an expert of mobile web design, and I tried to look on internet about it.
The only things that I found out that if I use an image button not always would be visualised on mobiles. I do not have mobiles where I can make direct tests to verify the real situation.
I wanted to know what are the cases and situation when an input type="image" button it is not visualised.
Thank you for your answers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
input type="image"
在移动设备上可以安全使用。我在几个移动网站上使用过它,没有发现任何重大问题。某些手机可能会更改按钮的显示方式(如果我没记错的话,诺基亚 S60 浏览器将添加比图像大的灰色背景)。
input type="image"
is safe to use on mobile devices.I've used it on several mobile website and haven't seen any major problems. Some handsets might change the presentation of the button (Nokia S60 browser will add a gray background that's larger than the image if I remember correctly).
我做过有限的移动应用程序开发,但过去我在黑莓设备上的图像按钮方面遇到了麻烦。您可以下载各种模拟器来测试您的应用程序并以在设备上查看的方式查看它。这对我很有帮助。
BlackBerry Emulators
有一个 Android 模拟器作为android sdk 可以在此处找到。
其 sdk 中也有一个 iphone 模拟器,但注册需要花一些钱。可以在此处找到。
I have done limited mobile application development, but in the past I had trouble with image buttons on BlackBerry devices. You can download various emulators to test your application with and view it as it would be viewed on the device. This was very helpful for me.
BlackBerry Emulators
There is an android emulator as part of the android sdk which can be found here.
There is an iphone emulator as part of its sdk as well, but it will cost you some money to register. That can be found here.
您可以打赌,6.0 之前的任何 Blackberry 都不会显示 type="image" 或会给您带来意想不到的结果。 BB 6.0 使用 webkit 作为浏览器引擎,因此它能够跟上 Android 和 iPhone 的步伐。
You can bet that on any Blackberry prior to 6.0 won't display type="image" or will give you unexpected results. BB 6.0 uses webkit as it's browser engine so it's able to keep up with Android and iPhone.