두 개의 div가 서로 옆에 표시되어야합니다. 첫 번째 div는 숫자 만 있고 다른 div는 링크입니다. 브라우저 (Firefox 및 크롬)의 크기를 조정하면 두 번째 div가 새 줄에 배치 된 다음 텍스트가 래핑됩니다. 두 번째 div의 텍스트를 첫 번째 줄에 맞춰 넣기를 원합니다.플로팅 div의 내용을 브라우저의 크기를 줄이기 위해 줄 바꿈을 할 수 있지만 줄 바꿈은 할 수 없습니다.
여기 이것은 내가 파이어 폭스에서 무엇을 얻을 내 코드
<html>
<body>
<style>
.row {
border: 1px solid yellow;
width: 100%;
overflow: auto;
}
.cell {
float:left;
border: 1px solid red;
}
</style>
<div class="row">
<div class="cell"><span>1</span></div>
<div class="cell">
<a>This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.</a>
</div>
</div>
</body>
</html>
그러나 이것은 내가 이것은 내가 원하는 무엇 인 IE에서 무엇을 얻을
을 원하는 무엇 없습니다.
안녕하세요 이것은 파이어 폭스가 아닌 IE 8에서 작동합니다. 파이어 폭스 IE 8과 크롬이 작동해야합니다. – David
IE8은 테이블 셀을 완벽하게 지원합니다. [here] (http://www.thebackoffice.be/test.html)를 참조하십시오. – ptriek
Cool thanks a mil – David