简体   繁体   English

HTML / CSS SharePoint 2010

[英]HTML/CSS SharePoint 2010

I am using SharePoint 2010 and have a problem with inputting html codes. 我正在使用SharePoint 2010,输入html代码时遇到问题。

I copy and paste the exact same code from another site page to create the same page again (then I modify etc.) However whenever the copied html is pasted and executed, the page ends up looking different. 我从另一个站点页面复制并粘贴了完全相同的代码,以再次创建同一页面(然后我进行了修改等)。但是,每当粘贴并执行复制的html时,该页面的外观就会有所不同。 This is especially true for the top nav panels. 对于顶部导航面板尤其如此。 They are all white/blank until I highlight them. 它们都是白色/空白,直到我突出显示它们为止。 The same is for any webpart that uses some CSS. 对于使用某些CSS的任何Webpart来说都是一样的。

Is there a way to fix this issue? 有没有解决此问题的方法?

The best way is to write the HTML/CSS from scratch instead of copy pasting it. 最好的方法是从头开始编写HTML / CSS,而不是复制粘贴它。 This is because 这是因为
most probably you will end up overriding the default CSS which is provided by SharePoint instead of creating new classes yourself. 最有可能您最终将覆盖SharePoint提供的默认CSS,而不是自己创建新类。

Have a look at: 看一下:

http://sharepointexperience.com/csschart/csschart.html http://sharepointexperience.com/csschart/csschart.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM