0
화면의 모든 개체는 CrystalReportViewer를 제외하고 가운데에 배치됩니다.CrystalReportViewer를 화면 중앙에 배치하는 방법은 무엇입니까?
CrystalReportViewer가 CSS와 작동하지 않습니까?
이.reportForm {
margin-left: auto;
margin-right: auto;
text-align: center;
width: 70%;
background-color: #efeeef;
clear: both;
padding-bottom: 35px;
}
보고서는 화면 왼쪽에있는 모든 방법입니다, 난 그냥 그것을 중심하려는 :
은 여기 페이지의이 부분에 대한 사용하고 내 CSS 클래스입니다.
다른 모든 컨트롤은 화면의 가운데에 배치됩니다.
보고서도 단락 태그에 포함됩니다.
여기에 실제 컨트롤의 :
<form runat="server" class="reportForm">
<p>
<CR:CrystalReportViewer ID="crvSchedules" runat="server" AutoDataBind="True" DisplayStatusbar="False" EnableDatabaseLogonPrompt="False" EnableDrillDown="False" EnableParameterPrompt="False" EnableTheming="False" EnableToolTips="False" HasCrystalLogo="False" HasDrilldownTabs="False" HasDrillUpButton="False" HasGotoPageButton="False" HasPageNavigationButtons="False" HasSearchButton="False" HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" HasZoomFactorList="False" Height="1153px" ToolPanelView="None" Width="868px" GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" ToolPanelWidth="200px" HasExportButton="False" HasPrintButton="False" />
</p>
</form>
이 전체 CSS 파일입니다
.reportForm {
margin-left: auto;
margin-right: auto;
text-align: center;
width: 70%;
background-color: #efeeef;
clear: both;
padding-bottom: 35px;
}
.site-title {
color: #c8c8c8;
font-family: Rockwell, Consolas, "Courier New", Courier, monospace;
font-size: 2.3em;
}
input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
border: 1px solid #787878;
cursor: pointer;
font-size: 0.8em;
font-weight: 600;
padding: 6px;
margin-right: 8px;
width: auto;
}
문제가 재현 될만큼 충분한 코드가 없습니다 (생성 된 * HTML은 템플릿 코드가 유용하지 않음). – cimmanon
컨트롤을 원래 게시물에 추가했습니다. –
이 요소를 제어하는 CSS의 * all *입니까? – cimmanon