End mobile phone use flex impact of horizontal scrolling layout

Today, when operating online end style found a problem, just look at their own record

Cause of the problem: the use of flex layout will affect the horizontal scroll

After loading the dynamic picture than the parent element when the width of the image will be squeezed, the parent element has been set

 white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

But no rolling effect, after removing the overflow-x inspection found that there is no problem, it is amazing, which is totally contrary to the

Finally found the problem so flex final solution is to replace the flex directly float plus the above code is no problem you can scroll up

So I do not know what record it

Guess you like

Origin www.cnblogs.com/rabbitstudent/p/12112021.html