问题描述
我已经从服务器场中的另一个Web应用程序导出了Webpart.该webpart的功能在新的网站集中可以正常工作,但是该webpart被包装在"s4-wpTopTable"中.类,因为此Webpart占据了整个 页面宽度.但是在从中导出webpart的网站中Webpart不会包装在"s4-wpTopTable"中类.关于为什么webpart在一个网站集中而不是在另一个网站集中用表类包装的任何指示?请 在下面找到突出显示的表格,该表格缠绕在我的Webpart周围.我只是将Webpart添加到"publishingwebcontrols:richhtmlfield"
I have exported webpart from another webapplication in farm. Functionality of the webpart works fine in the new site collection but the webpart is getting wrapped in "s4-wpTopTable" class, Because of this webpart is occupying the complete page width. But in the site from where webpart is exported webpart is not getting wrapped in "s4-wpTopTable" classes. Any pointers on why webpart is wrapped with table classes in one site collection and not in other? Please find below highlighted the table which gets wrapped around my webpart. I am just adding webpart to "publishingwebcontrols:richhtmlfield"
推荐答案
这是设计使然的"s4-wpTopTable";是分配给"ms-listviewtable"父表的类.
It is by design, "s4-wpTopTable" is a class assigned to a parent table of "ms-listviewtable".
如果您不想看到< table class ="s4-wpTopTable" ...</table> ,请检查以下线程:
If you do not want to see <table class="s4-wpTopTable">...</table>, please check the thread below:
https://stackoverflow.com /questions/13561062/如何自定义内容查询网页部分的HTML代码
最好的问候,
这篇关于自定义Webpart被包装在表类("s4-wpTopTable")共享点2010中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!