Describe:
vue 2.4when using development HTML5 , encountered in the Xiaomi part model (5x, mix2), the text/text background flashes and then disappears.
As below, .a-blue-block the blue background flashes, then the blue background suddenly disappears, leaving only the text.
HTML structure:
<div class="pannel-item" v-for="(item, index) in ps" :key="index"> <div class="a-blue-block"> <div class="title"> <span>{{item.name}}</span> <span v-if="item.ename">{{item.ename}}</span> </div> <div class="desc">{{item.itn}} {{item.idcard}}</div> </div> <div>
Partial CSS
$rem: 1 / 18.75 * 1rem;.a-blue-block { padding: 16*$rem 20*$rem; border-radius: 6 * $rem; color: #000; background: #1188FF; box-shadow: 0 4px 10px #ccc;}
Repair:
On the parent of the vanishing element, add background:#fff .
As to why this bug appears, and add white/any background can fix this bug, do not ask me, I do not know.
If someone encounters or knows why, hope to tell me someday.
[Bug] Part of Xiaomi model (5x, mix2), text/background flash and then disappear