Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
127 views
in Technique[技术] by (71.8m points)

How to check my css changes in chrome devtools

I change CSS in dev tools for several elements.

because of many changing, I forgot where I apply new value to elements.

Is there any function to check the difference from the original page?

example,,

<div class='one'> hello </div>
<div class='two'> hello </div>
<div class='three'> hello </div>
<div class='four'> hello </div>
<div class='five'> hello </div>
<div class='six'> hello </div>
<div class='seven'> hello </div>
<div class='eight'> hello </div>

For example, above HTML, I change many times for each element, and now I want to apply all changed values but due to too many changes, I lose my way to check the difference with my original CSS.

p.s. I use React and webpack, so More tools > Changes is not proper way to me

question from:https://stackoverflow.com/questions/65879123/how-to-check-my-css-changes-in-chrome-devtools

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can go to Sources > YourCSSFile > Local Modifications...

Here you can see all changes you made in the chosen CSS file.

Also good to know: The "Local Modifications..." link only appears, if really changes were made to the chosen file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...