1.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.5 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| 587d78ab367417b2b2512af0 | Use display: flex to Position Two Boxes | 0 | 使用display:flex定位两个Box | 
Description
display: flex;在元素上允许您使用其他flex属性来构建响应式页面。 Instructions
display添加到#box-container并将其值设置为flex。 Tests
tests:
  - text: '<code>#box-container</code>应将<code>display</code>属性设置为flex值。'
    testString: 'assert($("#box-container").css("display") == "flex", "<code>#box-container</code> should have the <code>display</code> property set to a value of flex.");'
Challenge Seed
<style>
  #box-container {
    height: 500px;
  }
  #box-1 {
    background-color: dodgerblue;
    width: 50%;
    height: 50%;
  }
  #box-2 {
    background-color: orangered;
    width: 50%;
    height: 50%;
  }
</style>
<div id="box-container">
  <div id="box-1"></div>
  <div id="box-2"></div>
</div>
Solution
// solution required