Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to make the picture display effect of accordion by Dreamweaver

Shulou Source: shulou.com Published: 2022-06-02 12:12:02 10月02日 Update

This article mainly introduces Dreamweaver how to make accordion picture display effect, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

1. Open the Dreamweaver cc 2014 software and choose to establish the html interface, which automatically generates some necessary code format to save time.

2. First save the code to a built folder where there are ready to do the effect of the picture folder.

3. Enter: in the body tag:

图片

图片

图片

图片

图片

图片

Note: the image location and picture name of the file path of src should correspond to each other.

4. In front of the body tag, enter:

Ul,li {list-style:none; padding:0; margin:0;} ul {width:960px; height:300px; margin:100px auto; border:1px solid # 000; overflow:hidden;} ul li {width:160px;height:300px;float:left;background-color:red;transition-property:width;transition-duration:1s;} ul:hover li {width:58px;} ul li:hover {width:670px}

After typing, press F12 key, pop up the page, you can see the picture.

5, after popping up the page, move the mouse over the picture and move around, you can see the picture sliding effect.

Thank you for reading this article carefully. I hope the article "how to make the accordion picture display effect of Dreamweaver" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Pictures effects articles code files input picture display accordion style production location folders tags pages necessary one-to-one correspondence value interest at the same time time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia Shulou Technology Xiaomi Shulou Tech Info