Sharepoint 2013脚本(用于包装升级的链接)仅在保存之前起作用 [英] Sharepoint 2013 script, to wrap promoted link, only works until you save it

查看:72
本文介绍了Sharepoint 2013脚本(用于包装升级的链接)仅在保存之前起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能有一个非常简单的解决方法,因为我是代码片段的新手,但是经过3天的浏览,我仍然没有找到它.

There's likely a super simple fix for this, as I'm new to snippets, but I haven't found it after looking 3 days.

在SharePoint 2013中,我有一个带有4个图块的单个升级链接,位于大图形的右侧.我只想将两个磁贴包装到另一行,以使提升的链接具有盒形形状.我使用:

In SharePoint 2013, I have a single promoted link with 4 tiles, to the right of a large graphic. I simply want to wrap two tiles to another row, to give the promoted link a box shape. I use:

< style>

<style>

  .ms-promlink-body {

 .ms-promlink-body {

  width:350px;

 width: 350px;

 } 

 } 

</style>

</style>

这很好用,将磁贴包装成两行.但是,当我单击保存"时,它返回到单行.当我查看脚本编辑器时,我的代码实际上已更改为:

This works great, wraps the tiles into two rows. However, when I click on "save", it goes back to a single line. When I look at the script editor, my code has actually changed to:

< style unselectable ="on">
</style>

<style unselectable="on">
</style>

真的很感谢您的帮助.

Would really appreciate some help on this.

推荐答案

您好,RogerTurpen,

Hi RogerTurpen, 

我已经在SharePoint 2013中进行了测试,并且工作正常.

I have done a test in my SharePoint 2013 and it works fine. 

我在主页中添加内容编辑Web部件,在内容编辑Web部件中添加CSS代码,然后保存页面:

I add a content edit web part in the home page, add the css code in content edit web part, save the page:

<style type="text/css">

 .ms-promlink-body {

 width: 350px;

 } 

</style>

然后使用包裹两个图块移至另一行:

最好的问候,

Lisa Chen

Lisa Chen 


这篇关于Sharepoint 2013脚本(用于包装升级的链接)仅在保存之前起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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