禁用javascript时的网站导航 [英] Site nav when javascript is disabled

查看:67
本文介绍了禁用javascript时的网站导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个导航功能,可以根据以下代码进行展开: http:// www .dynamicdrive.com / dynamicindex1 / droptabmenu.htm )。



首先,我们应该有一个没有javascript的nav版本?



如果是的话,最好的方法是什么?

解决方案

是的,您应该总是有一个非JavaScript版本的导航。



最好的办法是应用隐藏子菜单的所有样式 - 所以如果javascript isn 'b
$ b

您链接到的菜单的HTML看起来很好 - < ul> s和< a> s - 非常容易让蜘蛛或非javascript用户阅读。


We have a nav that expands on rollover (based on this code: http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm).

First, should we have a no-javascript version of the nav?

If yes, what is the best way to do so?

解决方案

Yes you should always have a non-javascript version of your navigation.

The best way to do this is to apply any styles that hide sub-menus with javascript - so if the javascript isn't run the whole menu will be visible.

The HTML for the menu you've linked to looks fine - <ul>s and <a>s - nice and easy for a spider or non-javascript user to read.

这篇关于禁用javascript时的网站导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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