解决办法:另想办法。工具提示,创建自己的状态栏,使用 title 属性等来完成。不要依赖状态栏之类的东西。
The status message hijack has been a bad practice that's fading away. I think the default behavior for javascript in this browser is to not let hijack it.
Solution: find another way. A tooltip, create your own status bar, do it with the title attribute, etc. Don't rely on something like the status bar.
Whether it's "bad practice" to use or rely on status messages is highly debatable. If you are designing a work-oriented desktop app, then how they render on phones is moot. Good practices for one device may not be good for others. If you cater to the lowest common device features, then you cannot leverage the advantages of more powerful devices. I'd say the utility of status messages depends on the usage and type of application.
Not everyone HAS the status bar turned on or even a title bar. (Consider phones and tablets that do away with these things just to increase a little screen real estate.) Also with more and more touchscreen devices entering the fray, mouseover is also going to become less useful.
Do consider alternatives. Also remember, hiding information from the user until they click or hover the right spot in a deadly sin of GUI design.
发布评论
评论(3)
状态消息劫持是一种不好的做法,而且正在逐渐消失。我认为这个浏览器中 javascript 的默认行为是不让劫持它。
解决办法:另想办法。工具提示,创建自己的状态栏,使用
title
属性等来完成。不要依赖状态栏之类的东西。The status message hijack has been a bad practice that's fading away. I think the default behavior for javascript in this browser is to not let hijack it.
Solution: find another way. A tooltip, create your own status bar, do it with the
title
attribute, etc. Don't rely on something like the status bar.使用或依赖状态消息是否是“不好的做法”是非常有争议的。如果您正在设计一个面向工作的桌面应用程序,那么它们如何在手机上呈现是没有意义的。适用于一种设备的良好做法可能不适用于其他设备。如果您迎合最低的常见设备功能,那么您就无法利用更强大的设备的优势。我想说状态消息的实用性取决于应用程序的用法和类型。
Whether it's "bad practice" to use or rely on status messages is highly debatable. If you are designing a work-oriented desktop app, then how they render on phones is moot. Good practices for one device may not be good for others. If you cater to the lowest common device features, then you cannot leverage the advantages of more powerful devices. I'd say the utility of status messages depends on the usage and type of application.
并非每个人都打开状态栏甚至标题栏。 (考虑一下取消这些功能的手机和平板电脑只是为了增加一点屏幕空间。)此外,随着越来越多的触摸屏设备加入竞争,鼠标悬停也将变得不那么有用。
请考虑替代方案。还要记住,向用户隐藏信息直到他们点击或悬停在正确的位置,这是 GUI 设计的致命罪过。
Not everyone HAS the status bar turned on or even a title bar. (Consider phones and tablets that do away with these things just to increase a little screen real estate.) Also with more and more touchscreen devices entering the fray, mouseover is also going to become less useful.
Do consider alternatives. Also remember, hiding information from the user until they click or hover the right spot in a deadly sin of GUI design.