Can I save CSS style changes from the Google DevTools Element > Styles tab, or must I go to the Sources tab?

别说谁变了你拦得住时间么 提交于 2019-12-02 06:07:28

问题


Today I learned about Google Chrome's ability to set up workspaces and map them to your local resources. This works perfectly in the Sources tab, but I'd like to be able to edit the css in the Elements > Styles tab so that I can see the changes as I make them. Otherwise I might as well just copy them into my editor since I have to reload the page to see the changes.

Is it possible to save changes from the Elements tab? I'd like the functionality similar to Chrome DevTools Autosave if it is built into Chrome already.

This is the same question as Chrome Workspaces - Saves changes in Sources tab but not Elements, but none of the solutions work for me.


回答1:


The new, experimental Workspaces 2.0 handles it the way you're looking for.

  1. Download Chrome Canary.
  2. Enable DevTools Experiments.
  3. Open DevTools.
  4. Open Command Menu.
  5. Type Settings and press Enter.
  6. Go to Experiments tab.
  7. Enable Persistence 2.0.
  8. Restart Chrome.




回答2:


  1. Add folder to workspace
  2. Map to File System Resource…
  3. Change the styles in Elements Tab, after that enter Tab or enter

After these steps, all your change are in your local mapped files.



来源:https://stackoverflow.com/questions/41178636/can-i-save-css-style-changes-from-the-google-devtools-element-styles-tab-or-m

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