Method 1: Directly write code to achieve The effect is as follows:
The code is as follows:
Menu without table < ;style>
< /head>
Method 2: Use jQuery code to implement The code is as follows:
Telescopic menu, rewritten with toggle()
Note: This code must load the jquery.min.js file, and the written CSS can only be viewed in Firefox displayed normally in the device.