Visual Studio (2012 and lower) deletes CSS properties

后端 未结 7 1945
北海茫月
北海茫月 2020-12-05 13:45

I have a really strange problem with Visual Studio 2010. When I add CSS properties for a gradient to my stylesheet, Visual Studio is going to delete it after some times of d

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 14:15

    I realize this is an older thread, but I still have the same problem

    I haven't yet found how to prevent it, but there is a much easier way to correct the CSS mess-up:

    As soon as you notice VS2010 has messed up the CSS code, stop the debug, go to the CSS file tab and press the undo button. Your Css code is back to before VS2010 messed it up. Compile and it works.

    I'm going to try out VS2012 soon, anyone know if it has been solved there?

提交回复
热议问题