如何设置自定义WebPart的Css样式?

carambo 2008-02-18 02:29:24
我自定义了一个Webpart,里面有标签、按纽、表格等,发布到SharePoint上后,怎样定义或设置这些元素的样式使得用户在改变网站整体样式后,我自定义的WebPart样式也跟着变化,和SharePoint的样式保持一致?诚恳求教,希望大家指点!谢谢!
...全文
360 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
aivdesign 2009-03-14
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 carambo 的回复:]
才发现,这里的人好少阿!
[/Quote]
嗯,同感!
qutr 2008-02-22
  • 打赏
  • 举报
回复
用的ASP.net的UserControl ?
你把你的控件部署到SharePoint上,用SharePoint Designer 2007打开你的UserControl然后查找Sharepoint的Css样式,进行修改。
你试试看,获取可以!
楼上的兄弟说的方法,我去研究研究!
Lee_jsmwj 2008-02-20
  • 打赏
  • 举报
回复
可以设置Webpart的System.Web.UI.Control.IsThemeEnabled属性
The EnableTheming property indicates whether themes are enabled for the PlaceHolder control. The EnableTheming property also affects whether themes are enabled for the controls contained in its Control.Controls collection. When the EnableTheming property is true, the application's theme directory is searched for control skins to apply. If no skin for the particular control exists in the theme directory, a skin is not applied.
具体请参照
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.placeholder.enabletheming(VS.80).aspx
carambo 2008-02-18
  • 打赏
  • 举报
回复
才发现,这里的人好少阿!

3,244

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 SharePoint
社区管理员
  • SharePoint社区
  • 霖雨 - LinyuLoveTJ
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧