2.0 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.0 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| 5a9036d038fddaf9a66b5d32 | Add Columns with grid-template-columns | 0 | 使用grid-template-columns添加列 | 
Description
grid-template-columns属性,如下所示: 。容器 {这将为您的网格提供两列,每列50px宽。给
显示:网格;
grid-template-columns:50px 50px;
}
grid-template-columns属性的参数数量表示grid-template-columns数,每个参数的值表示每列的宽度。 Instructions
100px宽。 Tests
tests:
  - text: <code>container</code>类应该有一个<code>grid-template-columns</code>属性,其中三个单元为<code>100px</code> 。
    testString: 'assert(code.match(/.container\s*?{[\s\S]*grid-template-columns\s*?:\s*?100px\s*?100px\s*?100px\s*?;[\s\S]*}/gi), "<code>container</code> class should have a <code>grid-template-columns</code> property with three units of <code>100px</code>.");'
Challenge Seed
<style>
  .d1{background:LightSkyBlue;}
  .d2{background:LightSalmon;}
  .d3{background:PaleTurquoise;}
  .d4{background:LightPink;}
  .d5{background:PaleGreen;}
  .container {
    font-size: 40px;
    width: 100%;
    background: LightGray;
    display: grid;
    /* add your code below this line */
    /* add your code above this line */
  }
</style>
<div class="container">
  <div class="d1">1</div>
  <div class="d2">2</div>
  <div class="d3">3</div>
  <div class="d4">4</div>
  <div class="d5">5</div>
</div>
Solution
// solution required