파이어 폭스 나이트 리 (35.0a1)의 최신판 (?)부터 flex-direction: row
인 플렉스 박스 컨테이너 내부에있는 text-overflow: ellipsis
과 관련된 문제가 발생했습니다. 각 열은 50 %입니다.플렉스 박스 컨테이너의 줄임표
데모 :
.container {
width: 300px;
background: red;
}
.row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.column {
flex-basis: 50%;
}
.column p {
background: gold;
/* Will not work in Firefox Nightly 35.0a1 */
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
<div class="container">
<div class="row">
<div class="column">
<p>Captain's Log, Stardate 9529.1: This is the final cruise of the starship Enterprise under my command. This ship and her history will shortly become the care of another crew. To them and their posterity will we commit our future. They will continue the voyages we have begun and journey to all the undiscovered countries boldly going where no man, where no one has gone before.</p>
</div>
<div class="column">
<p>Captain's Log, Stardate 9529.1: This is the final cruise of the starship Enterprise under my command. This ship and her history will shortly become the care of another crew. To them and their posterity will we commit our future. They will continue the voyages we have begun and journey to all the undiscovered countries boldly going where no man, where no one has gone before.</p>
</div>
</div>
</div>
야간의 텍스트가 컨테이너 외부 누출과 끝에 ...
을 추가하지. Chrome 및 Firefox Stable에서는 의도 한대로 작동합니다.
: // dotdotdot .frebsite.nl/ – GibboK
이 질문은 중복으로 표시되었지만 중복 된 질문은 무엇입니까? 나는 그것이 [이 하나] (http://stackoverflow.com/questions/12022288/how-to-keep-a-flex-item-from-overflowing-due-to-its-text)라고 믿는다. 그러나 나는 현재를 발견한다. 쓰레드가 읽기 쉽다. – Tibo