造型<li>与<a>

时间:2017-08-29 14:28:21

标签: html css css3 navigation

I realize these questions may be more of opinion based, but I am looking for what the industry standard best practices are considered to be:

1) Given responsive design and collapsing menus and such, does it make sense to style a nav or nav menu element with a fixed height?

2) Within the nav, is it best to style the li or the a surrounding the link or is it more personal preference?

1 个答案:

答案 0 :(得分:1)

这是一个自以为是的问题,所以这是我的见解答案:

  

1)鉴于响应式设计和折叠菜单等,为固定高度的导航或导航菜单元素设置风格是否有意义?

当然,为什么不呢?谷歌的Material Design包括一个固定高度的工具栏(大屏幕为64像素,小屏幕为56像素)。

  

2)在导航中,最好是设置李或围绕链接的样式,还是更个人偏好?

这是非常主观的。其他人,如Bootstrap style as over lis,其他人,如Material Design Lite,don't use anchors at all