摘要
导航栏制作的方法较多,有些网页导航采用HTML5制作导航内容,然后采用CSS3控制样式,这种制作方式结构简单,但层次关系较复杂、代码较多、调试网页时间长。本文介绍了一种简单容易的方法,采用轻量级架构JQuery,利用JQuery写得少、做得多的特点,使用尽可能少的代码,达到尽可能好的效果。采用JQuery技术制作的导航,代码简洁,结构清晰,是一种值得推广的好方法。
There are many methods of making navigation bar. Some Web navigation uses HTML5 to make navigation content, and then uses CSS3 to make the style. The structure of this method is simple, but the hierarchical relationship is complex, the code is large, and the debugging time of the Web page is long. In this paper, a simple and easy method is introduced. Using JQuery, a lightweight architecture with the characteristics of writing less and doing more, the best possible effect is achieved with less code.The navigation made by JQuery framework has concise code and clear structure, which is a good method worth using.
作者
余军
Yu Jun(Zhaoqing Industry and Trade Vocational School,Zhaoqing,Guangdong 526000,China)
出处
《计算机时代》
2022年第5期70-72,共3页
Computer Era