


How to solve the problem of misaligned options in iview's select drop-down box. The specific operations are as follows
Jun 01, 2018 pm 04:59 PMBelow I will share with you an article that perfectly solves the problem of misplaced options in iview's select drop-down box. It has a good reference value and I hope it will be helpful to everyone.
In the process of using iview, I encountered such a problem, using the select drop-down box component in the Model. However, when the pop-up box exceeds one screen and needs to be scrolled, the select drop-down options will be misaligned (Figure 1 below is normal, Figure 2 shows the drop-down options are misaligned after scrolling.)
Figure 1:
Figure 2:
After analyzing the component code, the following style was found :
.ivu-modal .ivu-select-dropdown { position: absolute !important; }
Solution
It is this style that affects the positioning of the drop-down box. The solution is to overwrite the author's original style.
However, unfortunately, the author added an !important and changed the priority.
So, how to make your style have a higher priority than his? You can add this style to the custom style file:
body .ivu-modal .ivu-select-dropdown{ position: fixed !important; }
The above is what I compiled for everyone. I hope that in the future It will be helpful to everyone.
Related articles:
vue data transfer--I have special implementation skills
Detailed explanation of password encryption processing operations in nodejs
Implementation method of handwritten Node static resource server
The above is the detailed content of How to solve the problem of misaligned options in iview's select drop-down box. The specific operations are as follows. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What should I do if win11 cannot use ie11 browser? (win11 cannot use IE browser)

Internet Explorer opens Edge: How to stop MS Edge redirection

Asynchronous processing method of Select Channels Go concurrent programming using golang

How to hide the select element in jquery

How to cancel the automatic jump to Edge when opening IE in Win10_Solution to the automatic jump of IE browser page

The end of an era: Internet Explorer 11 is retired, here's what you need to know

How to solve the problem that IE shortcut cannot be deleted

How to implement change event binding of select elements in jQuery
