为什么要使用列表做导航菜单,而不是按钮? [英] Why use list to do navigation menu instead of buttons?

查看:143
本文介绍了为什么要使用列表做导航菜单,而不是按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已检查了互联网上很多的导航菜单,以及他们经常用的,而不是一个按钮列表。这背后有什么原因?为什么要使用的按钮?谢谢你。

I have inspected many navigation menus on the internet, and they often use lists instead of a button. What is the reason behind this? Why use the button? Thank you.

推荐答案

有(至少)两个很好用列表的原因。使用列表可以帮助让您的网站的结构的想法是在搜索引擎优化方面的好,而且如果人们使用的可访问性的原因无论是自定义的CSS或屏​​幕阅读器。
第二,稍相关之一是,它是相当有益的,当谈到创建样式表。你不需要拿出你自己的元素嵌套方式。只要使用清单,并从那里走。然后你就可以专注于获得的样式适合不同层次级别提供不同的风格,第一个,最后,奇数或偶数列表项。

There are (at least) two good reasons to use lists. Using lists can help to give an idea of your site's structure which is good in terms of SEO but also if people use either custom CSS or screen readers for accessibility reasons. The second and slightly related one is that it's rather helpful when it comes to creating stylesheets. You don't need to come up with your own way of nesting elements. Just use lists and go from there. Then you can focus on getting the stylesheet right providing different styles for different hierarchy levels, first, last, odd or even list items.

这篇关于为什么要使用列表做导航菜单,而不是按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆