Есть ли простой метод переопределения для изменения фона веб-парада?SP 2010.

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/39455

Вопрос

узнал, как изменить фоном одной одной страницы (тело этой страницы).Это работает, когда я хочу одну страницу или два, чтобы иметь определенный фон вместо модификации главной страницы.

Есть что-то похожее на изменение цвета фона веб-панель?Или добавьте изображение в качестве фона?Или даже сделать это прозрачным?

Спасибо как всегда!

Это было полезно?

Решение

Basically, it can be done with css with header and table changing:

.s4-wpTopTable {
background: 
#FEE;
}

.ms-WPHeader {
background: 
#FEE;
}

If you want to apply this to particular web-part, you can add additional css-marker class on you web-part render methods to find you web part instance later or use js/jQuery-client bases techniques to apply/change css on target webpart.

enter image description here

Другие советы

The WebPart class has properties for background color and background image URL.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpart_properties

You can change the background by simply assigning relevant CSS to the topmost table or div tag that your webpart generates.For data-view, the html markup is in its XSL.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top