문제

Does anybody know of a way to wrap text column headers/questions on a SharePoint 2013 list?

I had posted a question on here a few days back about how to do this on Newform.aspx. I have since managed this with the help of an answer from my question on here but it doesn't apply to Dispform.aspx. I have tried viewing a list item so it opens as a dispform.aspx and then editing the page, adding a script editor and inserting the same code used for newform.aspx but this doesn't seem to work.

The code that was used in newform.aspx is below, it also works for editform.aspx as well.

.ms-formlabel {
    width: 400px;
}
.ms-formlabel nobr {
    white-space: normal;
}

Does anyone how to make this work for dispform.aspx?

도움이 되었습니까?

해결책

The default DispForm.aspx uses the class ms-standardheader, so you'd need to add

.ms-standardheader {
    width: 400px;
    white-space: normal;
}

to your css.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top