在下面的第一个div中,请注意外部div为flex-direction:row
,内部div为flex-direction:column
。我相信这种特殊的安排会导致P标签中的文本不能包装在IE 11中。
在第二个div中,外部div为flex-direction:column
,内部div为flex-direction:row
,并且在所有浏览器中都可以正常工作。
我的布局高度依赖于外部div为flex-direction:row
。我的问题是,他们是否可以解决这个问题,将文本包装在其他元素中?我尝试过设置display:block,inline等,但它不起作用。
Div 1:
<div style="background-color:gray;display:flex;flex-direction:row;">
<div style="display:flex;flex-direction:column;">
<p>THIS TEXT DOES NOT WRAP IN IE 11. WORKS IN CHROME, EDGE. Fed Chair Janet Yellen could clear the air next week, sounding more concrete on whether the central bank will squeeze in a rate hike or two this year, but more likely she won't. Yellen is scheduled to speak next Friday in Jackson Hole, Wyoming, and for markets that has been the most important event on the calendar this month. It also comes after the debate in markets heated up about whether the Fed could actually raise rates in September, or will wait until the end of the year or even later. I think she's going to play her cards very close to the vest. I don't think she can signal a September hike," said Diane Swonk, CEO of DS Economics. Swonk said three inflation reports and the August employment report will be released after the Aug. 26 speech and before the Sept. 20 Fed meeting. "She's got to leave her options open." But Swonk said the Fed is caught in a difficult spot, and there are good reasons why it would want to ease sooner even though it's unlikely. "It's the Fed's conundrum. ... The markets are pricing in easing infinity. If they raise rates, they could destabilize the markets. If they don't raise rates, they're feeding a bubble. It's a hard place to be in," she said. Barclays' chief U.S. economist, Michael Gapen, is among a minority on Wall Street who believe the Fed could raise rates in September. "I hope she steps up and gives an interesting speech. Don't give me this blah-dity blah. The markets need to hear from her. She's lost some credibility with investors. There are many market participants that believe she will never see sufficient data to make her move," he said </p>
</div>
</div>
Div 2
<div style="background-color:lightblue;display:flex;flex-direction:column;">
<div style="display:flex;flex-direction:row;">
<p>THIS TEXT WRAPS CORRECTLY IN IE 11, CHROME, EDGE. Fed Chair Janet Yellen could clear the air next week, sounding more concrete on whether the central bank will squeeze in a rate hike or two this year, but more likely she won't. Yellen is scheduled to speak next Friday in Jackson Hole, Wyoming, and for markets that has been the most important event on the calendar this month. It also comes after the debate in markets heated up about whether the Fed could actually raise rates in September, or will wait until the end of the year or even later. I think she's going to play her cards very close to the vest. I don't think she can signal a September hike," said Diane Swonk, CEO of DS Economics. Swonk said three inflation reports and the August employment report will be released after the Aug. 26 speech and before the Sept. 20 Fed meeting. "She's got to leave her options open." But Swonk said the Fed is caught in a difficult spot, and there are good reasons why it would want to ease sooner even though it's unlikely. "It's the Fed's conundrum. ... The markets are pricing in easing infinity. If they raise rates, they could destabilize the markets. If they don't raise rates, they're feeding a bubble. It's a hard place to be in," she said. Barclays' chief U.S. economist, Michael Gapen, is among a minority on Wall Street who believe the Fed could raise rates in September. "I hope she steps up and gives an interesting speech. Don't give me this blah-dity blah. The markets need to hear from her. She's lost some credibility with investors. There are many market participants that believe she will never see sufficient data to make her move," he said </p>
</div>
</div>