如何在类库c#中调用css样式? [英] How to call css styles in class library c#?
本文介绍了如何在类库c#中调用css样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.k-callout {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 14px;
border-color: transparent;
border-right: 56px transparent solid;
border-bottom: 0px;
border-left: 24px transparent solid;
margin-left: 355px;
transform: rotate(150deg);
margin-top: 15px;
}
for tooltip on left side:
.k-widget.k-tooltip {
border-radius: 10px;
margin-left: -416px;
margin-top: 41px;
background: transparent linear-gradient(#ecf9f7, #b4c3a3) repeat scroll 0% 0%;
/* border-color: #E6F3FB; */
-moz-box-shadow: 3px 3px 4px rgba(0,0,0, .65);
-webkit-box-shadow: 3px 3px 4px rgba(0,0,0, .65);
box-shadow: -4px 6px 4px black;
}
推荐答案
如果你想确保你的控件,无论它在哪里使用,已经加载了css,那么你可以通过c#动态完成。请参阅 c# - 在Asp.Net中以编程方式添加StyleSheets - Stack Overflow [ ^ ]
If you want to make sure that your control, wherever it is used, already has loaded the css then you can do it dynamically via c#. See c# - Adding StyleSheets Programmatically in Asp.Net - Stack Overflow[^]
这篇关于如何在类库c#中调用css样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文