How to solve the problem of location disorder caused by hover
This article mainly introduces the relevant knowledge of how to solve the problem of location disorder caused by hover, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on how to solve the problem of location disorder caused by hover. Let's take a look.
In hover, the I element becomes a block element
As a result, these two elements occupy a separate line.
It eventually leads to disordered style.
.demo i {
Display: none
}
.demo: hover i {
/ / causes these two elements to become block-level elements
/ / affected the style and occupied a line alone
/ / display: block
/ / solution
Display: inline-block
}
This is the end of the article on "how to solve the problem of location disorder caused by hover". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to solve the problem of location disorder caused by hover". If you want to learn more knowledge, you are welcome to follow the industry information channel.