Table shaking of element-ui in vue

I will not upload the renderings, just keep shaking (Google Chrome). (I don't have this problem on my computer, but computers with different resolutions occasionally do.) At first, I didn't plan to deal with this bug, because it was unpredictable and I didn't know where to start. Later, the testers responded more and more frequently, my initial suspicion was that the width or height reached a critical value, and then it has been automatically calculated. However, I'm not very sure, I don't know if there is a problem with my CSS or the element plugin, I can't be sure. Until I Baidu found the same problem, it was finally determined.

element-ui table infinite jitter problem and solution | = - =

Table shaking of element-ui in vue

My solution is just in the global style

.el-table{
  width:99.9% !important; //不让它到临界值,这样可避免自动计算
}

Guess you like

Origin blog.csdn.net/u012174809/article/details/123418175