Flex 实现两列自动伸缩撑满的效果,兼容 IE10,CHROME,Firefox Javascript

axiuno 2月前

<html>
<body>
	<div style="background: green; display: flex;">
		<div style="flex-basis: auto; white-space: nowrap; background: #f00; ">1111</div>
		<div style="width: 100%; background: #0f0;">222</div>
	</div>
</body>
</html>



左侧内容多的时候自动撑开。

最新回复 (0)
返回
HTTP/1.1 502 Bad Gateway Content-Type: text/html Connection: close Content-Length: 303 Date: Sat, 20 Jan 2018 19:42:57 GMT X-Via: 1.1 host.localdomain (random:420538 Fikker/Webcache/3.7.4) 502 Bad Gateway

502 Bad Gateway - Cann't Connect To Upstream Server By SSL Read

Server: host.localdomain
Date: 2018-01-20 19:42:57

Fikker/Webcache/3.7.4