The shopping cart drop-down box appears below the search box
TM.Rui
TM.Rui 2018-10-24 16:04:10
0
3
1468

Teacher Miejie Shitai, hello:

I revised it according to what you said, as shown in the picture below. What is the reason for this?

1.jpg

TM.Rui
TM.Rui

reply all(2)
灭绝师太

Reason: If absolute positioning is set for an element, the element will break away from the document flow, so it will cover other elements.

灭绝师太

Set the level of the drop-down box under the shopping cart to a higher level, z-index: 100

  • reply OK, this problem has been solved. Because I followed your course, I found a bug when making this. You proposed this solution before the start of the lecture later, so you used z-index.
    TM.Rui author 2018-10-27 09:30:18
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template