简体   繁体   English

VS 2008自动更改我的CSS文件

[英]VS 2008 is auto changing my CSS file

I just migrated an web app from vs 2005 to vs 2008. I use a CSS file with styles for my buttons. 我只是将一个Web应用程序从vs 2005迁移到了vs2008。我使用带有样式的CSS文件作为按钮。 In Vs2005, if I assign a style and elect to change it, I would get an inline style for that button, thus creating an exception to my style. 在Vs2005中,如果我指定一种样式并选择更改它,则将为该按钮获得一个内联样式,从而为我的样式创建了一个例外。 In 2008 (also tried this in 2010) it will change the width setting in my CSS file if I resize a button... thus making a global change. 在2008年(2010年也尝试过此操作),如果我调整按钮的大小,它将更改CSS文件中的宽度设置...从而进行全局更改。 Is there a way to turn this off? 有没有办法关闭此功能? I have looked most everywhere and do not see this issue on the web. 我到处都看的最多,在网上看不到这个问题。 thanks 谢谢

You can use in VS 2010 Skin and Theme to apply formatting to your Button. 您可以在VS 2010外观和主题中使用将格式应用于按钮。 There is also a SkinId property which allow you to set a specific Style for a Web Control with that the same Id. 还有一个SkinId属性,该属性使您可以为具有相同ID的Web控件设置特定的样式。 Have a look at MS reference here http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx 在这里看看MS参考http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM