[英]import CSS in sharepoint 2010
seen like this is the easy way, but I am facing some issue, I separated style sheet according to the section like 看起来像这样是简单的方法,但是我遇到了一些问题,我按照喜欢的部分将样式表分开
layout.css
typo.css
element.css
and sooo on 然后继续
and then from the masterpage section I added the 1 stylesheet named 'style' and call all the style sheet into it using the "@import url('typo.css')" 然后从母版页部分添加一个名为“ style”的样式表,并使用“ @import url('typo.css')”将所有样式表调用到其中
the problem is this @import is not working... any solution how to call all other .css in 1 stylesheet? 问题是这@import无法正常工作...任何解决方案如何在1个样式表中调用所有其他.css?
It will depend on where the style sheets are located on filesystem or style library. 这将取决于样式表在文件系统或样式库上的位置。 @import directive will not work for a style library.
@import指令不适用于样式库。
I will suggest you skip the import directive and add the three style declarations in your master page. 我建议您跳过import指令,并在母版页中添加三个样式声明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.