开发者

Instead of giving "back to top" button is it good to make layout with fixed header hand footer?

开发者 https://www.devze.com 2022-12-20 21:11 出处:网络
Instead of giving \"back to top\" button is it good to make layout with fixed header and footer for better usability? or this type of layo开发者_如何学Cut can be problem for screen reader?

Instead of giving "back to top" button is it good to make layout with fixed header and footer for better usability? or this type of layo开发者_如何学Cut can be problem for screen reader?

Like this

http://limpid.nl/lab/css/fixed/header-and-footer


This would be determined on a case-by-case basis. Some pages have minimal headers with crucial information, while others have bloated headers with useless information. As for screen readers, as long as your structure is consistent (and you do the sticky with css/javascript) I don't think there would be any problem.

Just keep in mind that stickied items take up screen space. With many people browsing the web on laptops and mobile devices, that screen space may be more crucial than you think. Don't sticky a header and/or footer unless it's absolutely necessary.

Perhaps an alternative method would be helpful. Maybe instead of your links saying "Back to top," they simply said "Popup Navigation." When clicked, a small div appears with the navigation (since this is what users typically go back to the top for). I worked up a quick example: http://jsbin.com/uromo/2/edit

0

精彩评论

暂无评论...
验证码 换一张
取 消