1
JSP에 두 개의 side-by-side DIV가 있습니다. 그것은 하나 개의 예외와 함께 잘 작동합니다CSS 나란히 - Dynatree가 가로로 채워지지 않습니다.
<div id="sub-title">
<div id="sub-left">
<fieldset class="search-fields">
<legend>Files Found</legend>
<!-- Add a <div> element where the tree should appear: -->
<div id="tree">
</div>
</fieldset>
</div>
<div id="sub-right">
<fieldset class="search-fields">
<legend id="selectedFileLegend">Selected File Contents</legend>
<textarea name="fileContents" id="fileContents" rows="20" readonly="readonly" wrap='off'>
(select via tree on left)
</textarea>
</fieldset>
</div>
<div class="clear-both"></div>
</div>
:
여기
는 HTML입니다 : 내가 제대로 좌측 DIV의 수평 공간을 채우기 위해 jQuery를 Dynatree를 얻을 수 없다 및 CSS :
#sub-left {
/* background: #99FF99; pale green */
/* border:1px dashed; */
float: left;
width: 24%;
}
#sub-right {
/* background: #FFCC99; pale orange */
/* border:1px dashed; */
float: right;
width: 73%;
}
#sub-title {
overflow:hidden;
}
.clear-both {
clear: both;
}
#tree {
vertical-align: top;
width: 250px;
}
나는 물론 dynatree CSS도 사용한다. 어떤 생각이 잘못된거야? 도와 주셔서 감사합니다!
Argh - 이렇게 여러 번 보았습니다. 좋아요. Dynatree가 왼쪽 DIV를 채우지 만, 왼쪽 DIV는 항상 2 번째 그림처럼 오른쪽으로 겹칩니다. 정말 넓은 브라우저. 오버플로 또는 클리어와 관련이있을 수 있습니까? – Mark
나는 jsFiddle을 직접 만들 것을 제안하고 다른 사람들은 더 쉽게 디버깅 할 수 있습니다 - 그 발췌 문장에서 아무 것도 보이지 않아서 그런 일이 발생할 수 있습니다. – chrisn
공유 - 여기 링크가 있습니다 : http://jsfiddle.net/marklorenz/jxnMY/2/ – Mark