2016-08-05 3 views
0

dijit ConfirmDialog의 기본 스타일 (막대 색상, 내용 색상 등)을 변경하는 방법? 아래 코드를 참조하십시오. 확인 대화 상자에서 너비 또는 색상이 변경되지 않았습니다. Dijit ConfirmDialog - 기본 스타일 변경

+0

너는'style : "을 시도 해 봤나? width : 400px; color : gray;"'? 덕분에, – aichao

답변

1

var confirm = new ConfirmDialog({ 
 
    title: "Confirmation", 
 
    content: "This is the content", 
 
    style: "width: 400px, color: grey" 
 
}).show();

내가 방금 BTW 세미콜론 ;

var confirm = new ConfirmDialog({ 
    title: "Confirmation", 
    content: "This is the content", 
    style: "width: 400px; color: grey" 
}).show(); 

,을 변경해야 할 생각 stylecolor 속성은 단지 콘텐츠 색상입니다. 제목 표시 줄의 배경색을 변경하려면이 link는 말한다 :

당신은 .dijitDialogTitleBar의 CSS의 배경 색상을 무시해야 할 것이다. 예를 들어, 여기

<link rel="stylesheet" type="text/css" href="dojo-release-1.6.1-src/dojo/resources/dojo.css" /> 
<link rel="stylesheet" type="text/css" href="dojo-release-1.6.1-src/dijit/themes/claro/claro.css" /> 

<style> .claro .dijitDialogTitleBar { background-color: #00FF00 } </style> 

, 색상이 녹색으로 변경된다.

+0

. 대화 상자 제목 표시 줄의 색은 어떤 속성인지 압니까? –

+0

dijit 대화 상자의 기본 테마를 재정의해야합니다. 자세한 내용은 [this] (http://dojo-toolkit.33424.n3.nabble.com/how-to-change-the-bgcolor-of-the-dojo-dialog-title-bar-td2930155.html)를 참조하십시오. ConfirmDialog는 Dialog에서 파생됩니다. 테마를 전체적으로 변경하려는 경우 (기본적으로 claro.css), 사용할 테마를 직접 개발할 수 있습니다. – aichao