用户控件css文件影响父页面 [英] user control css file effects the parent page

查看:77
本文介绍了用户控件css文件影响父页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有CSS的用户控件,并且CSS也会影响父页面.
例如,我为用户控件主体设置了字体或颜色,
但是它也会影响父母的身体,文本也会在那里改变.

i have a user control which has a CSS and the CSS effect the parent page too.
for example i set font or color for the user control body ,
but it effects the parents body too and the text change there too.
do u have any idea?

推荐答案

确保没有在多个CSS文件中使用相同的类名.总是有可能引起问题.
Make sure that you don''t use the same class names in multiple css files. That always has the potential of causing problems.


这篇关于用户控件css文件影响父页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆