由Previous Admin在2010年实施的Stylesheet Hack在2016年不再起作用,请提供帮助 [英] Stylesheet Hack Implemented by Previous Admin in 2010 no longer working in 2016, Please Help

查看:90
本文介绍了由Previous Admin在2010年实施的Stylesheet Hack在2016年不再起作用,请提供帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由以前的管理员在2010年环境中实施的样式表黑客在升级到2016年后不再起作用(我在2013年论坛中发帖,因为我对2016年的帮助不大.)

A stylesheet hack implemented by a previous admin in 2010 environment is no longer working after upgrade to 2016 (I'm posting in 2013 forum because I find little help for 2016 currently).

在SharePoint 2010中,我们有一个Excel Webpart,该Excel Webpart在电子表格中具有按钮,该按钮的文字没有自动换行,从而使其看起来被截断.   hack是一个样式表,已添加到隐藏的内容编辑器中.  样式表中包含 使按钮中的文本自动换行的效果.  但是,既然我们已经到了2016年,那么此样式表将不再起作用.

In SharePoint 2010, we had an Excel webpart that had buttons in the spreadsheet with text that was not wrapping thereby making it appear truncated.  The hack was a stylesheet added to a hidden Content Editor....see below.  The stylesheet had the effect of making the text in the buttons wrap.  However, now that we are on 2016, this stylesheet is no longer working.

<style type="text/css"> 

TABLE.ewr-sheettable DIV.cv-nwr {
    
    white-space: nowrap;
    overflow: visible;
}
TABLE.ewr-sheettable DIV.cv-nwl {
    white-space: nowrap;
   
    overflow: visible;
}
TABLE.ewr-sheettable DIV.cv-wl {
    white-space: nowrap;
   
    overflow: visible;
}
TABLE.ewr-sheettable DIV.cv-wr {
    white-space: nowrap;
   
    overflow: visible;
}
Inline Style{
width:130px
}
</style>

推荐答案

JahShuWah,

Hi JahShuWah,

SharePoint 2016的UI与SharePoint 2010的UI不同,SharePoint 2016中有一些更改.

The UI of SharePoint 2016 is different with the UI of SharePoint 2010, there are some changes in SharePoint 2016.

您需要重新检查相关元素和HTML代码,然后重写CSS样式.

You need to re-check the related elements and the HTML code then rewrite the CSS style.

谢谢

温迪


这篇关于由Previous Admin在2010年实施的Stylesheet Hack在2016年不再起作用,请提供帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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