오늘, Easyi를 사용하여 레이아웃을 만들 때 질문이 발생했습니다.
문제 : 클래스 = "easyUi-layout"이 독립적 인 div로 작성되면 레이아웃 스타일을 표시 할 수 없으며 오류가 없습니다.
예를 들어:
코드 사본은 다음과 같습니다.
<span style = "font-size : 14px;"> <body>
<div>
<div data-options = "지역 : 'North', 제목 : 'North Title', split : true"style = "높이 : 100px;">
</div>
<div data-options = "region : 'south', 제목 : '사우스 제목', split : true"style = "높이 : 100px;">
</div>
<div data-options = "region : 'east', iconcls : 'Icon-Reload', 제목 : 'East', split : true">
</div>
<div data-options = "region : 'west', 제목 : 'West', split : true">
</div>
<div data-options = "region : 'center', title : 'center title'" "href ="centerpage.html "style ="background : #eee; 오버플로 : 숨겨진; ">
</div>
</div>
</body> </span>
보여주다:
솔루션 : 클래스 = "EasyUi-Layout"이 신체에 작성되면 문제가 해결됩니다. 그리고 영역 속성은 다른 관련이없는 div에 포함될 수 없습니다.
암호:
코드 사본은 다음과 같습니다.
<span style = "font-size : 14px;"> <body>
<div data-options = "지역 : 'North', 제목 : 'North Title', split : true"style = "높이 : 100px;">
</div>
<div data-options = "region : 'south', 제목 : '사우스 제목', split : true"style = "높이 : 100px;">
</div>
<div data-options = "region : 'east', iconcls : 'Icon-Reload', 제목 : 'East', split : true">
</div>
<div data-options = "region : 'west', 제목 : 'West', split : true">
</div>
<div data-options = "region : 'center', title : 'center title'" "href ="centerpage.html "style ="background : #eee; 오버플로 : 숨겨진; ">
</div>
</body> </span>
왜 이것이 왜 그런지 궁금하십니까?