内容编辑器Web部件不起作用 [英] Content Editor Web Part not working
问题描述
我有一个非常简单的自定义列表,我想拥有一个独特的背景图片.我添加了一个内容编辑器Web部件,其中添加了以下样式命令:
I have a very simple custom list that I was to have a unique background image. I add a Content Editor Web Part put the following style command in it:
< style> . bgimage { 背景图片 : url ( " myimage. png " ); 宽度 : 100% ; } . 内容 { 宽度 : 100% ; } </style> < div class = "cc-bgimage"; >   ; < div class "content"; > <跨度>测试 </div> </div>
<style> .bgimage { background-image: url("myimage.png "); width: 100%; } .content { width: 100%; } </style> <div class="cc-bgimage"> <div class"content"> Test </div> </div>
该语句并不会显示为背景层,而是会打印到屏幕上.这是我第一次使用此Web部件.我在做什么错了?
Instead of my imaging showing as a background layer the statement just prints to the screen. This is my first time using this web part. What am I doing wrong?
-Rick-此消息是使用100%回收的电子发送的...
-Rick- This message was sent using 100% recycled electrons...
推荐答案
嘿,
希望以下内容对您有帮助
Hope the below helps you
https://sharepoint.stackexchange.com/questions/168235/content-editor-webpart-code-to-add-a-background-image-in-sharepoint-2013
https://sharepoint.stackexchange.com/questions/168235/content-editor-webpart-code-to-add-a-background-image-in-sharepoint-2013
https://social.technet.microsoft.com/Forums/office/zh-CN/1c06305f-88fd-45b4-8b3b-ca2dcdd8e263/how-to-add-background-image-to-the-body-of -a-sharepoint-page?forum = sharepointadmin上一个
https://social.technet.microsoft.com/Forums/office/en-US/1c06305f-88fd-45b4-8b3b-ca2dcdd8e263/how-to-add-background-image-to-the-body-of-a-sharepoint-page?forum=sharepointadminprevious
https://social.msdn.microsoft.com/Forums/sharepoint/zh-CN/aa3e7909-476b-4299-a1f5-0af0cd73bf65/setting-a-background-image-to-cover-one-entire-content -page-only?forum = sharepointdevelopment以前的
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/aa3e7909-476b-4299-a1f5-0af0cd73bf65/setting-a-background-image-to-cover-one-entire-content-page-only?forum=sharepointdevelopmentprevious
这篇关于内容编辑器Web部件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!