sharepoint 設置webpart 直接空隙

在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; 
}


 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章