日期选择器-未设置样式 [英] Date Picker - Not being styled
问题描述
对于使用从2010年升级的网站模板构建的网站,我有一个烦人的问题.日期选择器返回一堆精灵(/_layouts/15/images/spcommon.png?rev=23)而不是设置其样式.
I have an annoying issue with sites that were build using site templates upgraded from 2010. The date picker returns a bunch of sprites (/_layouts/15/images/spcommon.png?rev=23) instead of being styled.
从一个工作站点中,我可以看到它应该使用来自/_layouts/15/1033/styles/corev15app.css?rev=lhjTtG3PhNgW2c%2FlVFBkuA%3D%3D的CSS,即使以生效的形式注册此样式表我仍然得到相同的结果.
From a working site, I can see it should be using CSS from /_layouts/15/1033/styles/corev15app.css?rev=lhjTtG3PhNgW2c%2FlVFBkuA%3D%3D however even when registering this style sheet in an effected form I'm still getting the same result.
有人有什么想法吗?
推荐答案
我遇到了同样的问题-将SP2010解决方案升级到了SP2013,但此举破灭了DatePickers日历弹出窗口.我在所有带有DatePicker控件的列表中都看到了问题.
I'm having the same problem - upgraded an SP2010 solution to SP2013 and that broke the DatePickers calendar popup. I'm seeing the problem in all lists with DatePicker controls.
我还注意到升级后的解决方案中缺少corev15app.css.
I also noticed that the corev15app.css is missing in the upgraded solution.
_layouts/15/defaultcss.ashx似乎无法重定向到正确的样式表
it seems that _layouts/15/defaultcss.ashx fails to redirect to the correct stylesheet
这是相关的日志输出:
defaultcss.ashx:指定的资源为空
defaultcss.ashx:尝试获取web.MasterCssUrl
defaultcss.ashx:使用提升的代码路径获取css文件或其他资源,因为非提升的代码路径无法获取它. (...)
defaultcss.ashx:尝试获取web.MasterCssUrl
访问/_layouts/15/defaultcss.ashx时出现应用程序错误,错误=指定的对象不属于列表.
defaultcss.ashx: resource specified null
defaultcss.ashx: attempting to get web.MasterCssUrl
defaultcss.ashx: using elevated codepath to get css file or other resource because the non-elevated code path failed to get it. (...)
defaultcss.ashx: attempting to get web.MasterCssUrl
Application error when access /_layouts/15/defaultcss.ashx, Error=The object specified does not belong to a list.
这篇关于日期选择器-未设置样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!