Current location - Recipe Complete Network - Complete cookbook - How to adjust the drop-down menu in Dreamweaver and edit the drop-down menu?
How to adjust the drop-down menu in Dreamweaver and edit the drop-down menu?

How to call the navigation bar and drop-down menu in the dedecms website? The method of calling the DeDECMS website navigation bar and drop-down menu is as follows:

Dedecms is a very good open source program with powerful functions, but the default template has a very good user experience. There are still many imperfections and we need to make some modifications ourselves. For example, there is no drop-down list functionality on the default navigation bar. Today I will help you solve how to create a drop-down list for Dreamweaver Navigation.

Actually, displaying a drop-down list on this navigation bar is very simple. Even if you don’t have any coding knowledge, you can still operate it. Just follow the steps below and you can easily do it.

First, we paste the following red code into "Website Root Template Default

Text/JavaScriptsrc=

{dede:channelartlisttypeid=topclass=child noself =}/a

{/dede:channelartlist}

Navigation menu

Then we regenerate the website homepage, then open the homepage and refresh it. You will find your. A drop-down menu has appeared in the website navigation bar, but because there is no background image, the background is still transparent. At this time, we only need to add a background image that we like, and it will look much better.

But it is a headache. The thing is that this drop-down menu is transparent! What should I do? There is a short riding whip with a loop at one end

How to add a background image

We put the DedeCMS program folder Copy the mmenubg.gif (green background image, suitable for green theme templates) in dedeimg or the mmenubg.gif (blue background image, suitable for blue theme templates) in the DedeCMS program folder templetsimages to the DedeCMS program folder /templets/ Below default/images, now take a look at the effect. Will the familiar drop-down menu appear in the navigation bar? We put the DreamweaverDedeCMS program folder Didi img (green background image, suitable for green theme template) or DedeCMS program folder. Copy the Mmenubg.gif template in the picture (blue background picture, suitable for blue theme template) to the DedeCMS program folder /templates/default/images. Now, take a look at the effect and the navigation bar. Does the familiar drop-down menu appear?

If you want to have a better display, you need to manually modify the file in /templates/default/style/dedecms.css, but you need a little CSS knowledge~

To modify css, we can use ". ctrlf just looks for. drop-down menu to modify it.