其他分享
首页 > 其他分享> > 前端HmlCSS万能找bug方法/使用几行css精准定位到是哪个元素出bug

前端HmlCSS万能找bug方法/使用几行css精准定位到是哪个元素出bug

作者:互联网

只需添加下面几行css

* {
    outline: solid #f00 1px !important;
    background: #000 !important;
    color: green !important;
}

页面就会变成这样:
在这里插入图片描述

比如我这里一直突出一块,但是不能确定到具体某个元素,使用这个方法就非常清晰可见了

标签:HmlCSS,color,元素,几行,important,bug,css
来源: https://blog.csdn.net/qq_23073811/article/details/123130928