单击按钮即可更改ASPX Page的CSS [英] CSS of ASPX Page changes on button click
本文介绍了单击按钮即可更改ASPX Page的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好..
我有一个aspx页面,该页面具有使用css文件的打印/保存按钮.但是当我单击打印/保存"按钮时,该页面的css会自动更改,并且页面的字体大小会增加.
我该如何避免.可能是什么原因.请帮助..
谢谢和问候.
Deepak Kumar
Hello..
I have an aspx page having a print/save button that uses a css file. but when i click the print/save button the css of that page changes automatically and the font size of the page increase.
How can i avoid it.What are the possible reasons.Please help..
Thanks and regards.
Deepak Kumar
推荐答案
我认为您使用的是css类型的混合,表示内联css,嵌入式和外部.
如果那样的话,您应该只使用一种类型,我建议将其用于外部CSS文件.
我认为您没有正确编写CSS的另一个原因是,当您单击按钮时,它会影响字体和格式.您的页面布局不是由CSS处理的.
I think you are using mixture of css types, means inline css, embeded and external.
If that then you should use only one type i recomend for external css file.
Another reason for that i think you did not write css properly because when you click on button it affects the fonts and formatting. your page layout is not handled by css.
这篇关于单击按钮即可更改ASPX Page的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文