Sharepoint 2013删除了< style>在嵌入代码中保存 [英] Sharepoint 2013 deleting contents of <style> in embed code when saving
问题描述
我想使用嵌入代码工具在Sharepoint 2013页面中添加一些样式。它工作正常,直到我保存页面,然后它删除< style>
和< / style>
tags?
I am trying to add some styling to a Sharepoint 2013 page using the Embed code facility. It works fine until I save the page and then it deleted all the text between the <style>
and </style>
tags?
因此,我在网页上点击嵌入代码并输入以下内容
So I click embed code on the page and enter the following
<style>
.sampleStyle {color:#fff}
</style>
当保存并重新打开时,我发现sharepoint已将代码更改为
When its saved and re-opened I find sharepoint has changed the code to this
<style unselectable="on">
</style>
推荐答案
在今天早上的沮丧中,我在嵌入代码框中添加了信息,SharePoint根本不会保存它。
It can be done. In my frustration this morning, I was adding information in the embed code box and SharePoint wouldn't save it at all. When I returned to the box, it was just empty.
以下是如何使其工作:
-
使用之前的嵌入代码,但输入以下内容:
<script type="text/css">
*/your CSS here/*
</script>
点击插入 b $ b
Click Insert
现在可以使用了!
必须使用< script>
,以便SharePoint保存和嵌入一些代码。一旦嵌入,您可以更改它,它将保持嵌入和工作。
When you first add the code you must use <script>
in order for SharePoint to save and embed some code. Once it's embedded, you can change it and it will remain embedded and work.
这篇关于Sharepoint 2013删除了< style>在嵌入代码中保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!