简体   繁体   中英

SharePoint 2010, How change a style of webpart?

I am new in SP, I have a listView in a webpart and I need to enlarge it to be the 100% width. I need a simple way to do this.

people keep talking about SP css, and preventing affecting on all WebParts in the system

Thanks

First, you need to load it into a Web Part Zone that occupies the full width of the page. Then you can use the Appearance tab in the browser UI to further tweak how the Web Part looks. You may or may not need to use CSS to tweak the padding around it.

If the ListView itself is not occupying 100% of the Web Part, try adding a fixed width to it, which may save you the trouble of having to tweak any CSS for the Web Part itself.

If you need to apply custom CSS, you have two options:

(1) Add an alternate style sheet via the browser UI (master page admin). Ideally you would deploy your branding as part of a Feature, which gives you the benefit of source controlling your branding artifacts:

Developing SharePoint 2010 features using Visual Studio 2010

Creating Features

(2) Use SharePoint Designer to apply custom CSS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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