如何在ascx中添加外部CSS文件? [英] How to add an External CSS file in ascx?

查看:52
本文介绍了如何在ascx中添加外部CSS文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ascx文件中添加外部css文件(用户控件)?

How to add an External css file in ascx file (User control)?

推荐答案

CSS与页面关联,而不是具体控件。但是,当页面引用它时,您可以在控件中使用CSS。



您可以在包含用户控件的页面标题中引用css文件。



hope它有助于:)
CSS is associated to the page, and not the control specifically. But you can use the CSS in the control when the page has referenced it.

You can reference the css file in the header of the page containing the user control.

hope it helps :)


这篇关于如何在ascx中添加外部CSS文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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