Can no longer see line number of a css style in chrome dev tools when inspecting an element

坚强是说给别人听的谎言 提交于 2019-12-10 10:39:10

问题


This has just became an issue today and was wondering if i've maybe touched something I shouldn't have but if you have a look at this picture here

This was taken from twitch just because i had a tab open, as you can see it has the css file that the style comes from and also the line number as per usual.

Now for some reason all of my web projects that I launch locally no longer have this on the dev tools and my tools look like this.

This is making development pretty damn annoying as with the way I work I generally need the line numbers there when I'm doing quick changes to styles. Right now I have to Ctrl + F the class to make changes which is a pain.

Any ideas?


回答1:


I discovered, having the same problem, that if you are working with local files, Chrome will not show the line number. You have to upload them, and then the line number will show up.

I don't know why this is happening.



来源:https://stackoverflow.com/questions/26276956/can-no-longer-see-line-number-of-a-css-style-in-chrome-dev-tools-when-inspecting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!