在SP前台页面中 添加webpart 后再IE10以上版本中默认是有空行去掉
/*****隐藏webpart见空格********/
.ms-PartSpacingVertical{
display:none!important;
margin:0px!important;
padding:0px!important;
}
.ms-webpartzone-cell
{
margin:0px!important;
padding:0px!important;
}
.ms-webpart-zone {
display: block;
}
目前在IE10版本有效,但是向下的兼容还没有调整好,如果谁有更好的样式 希望完善哦~~
在IE9及以下版本可以考虑试试以下代码:
.ms-webpart-chrome-vertical
{
display:inline!important;
}
.ms-webpart-cell-vertical
{
display:inline!important;
}