* Updated grammar and readability Terms such as class and item are either referred to in English or avoided in the Chinese versions of tutorials that I have found, as translating them directly does not make much sense. Changed some sentence structures for the ease of understandings. * fix typo
		
			
				
	
	
	
		
			1.7 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.7 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| 5a90373638fddaf9a66b5d39 | Use grid-row to Control Spacing | 0 | 使用网格行控制间距 | 
Description
grid-row属性来定义项目开始和结束的网格行。 Instructions
item5class选择器的元素占有最后两排网格行。 Tests
tests:
  - text: <code>item5</code>class应该有一个具有<code>2 / 4</code>值属性的<code>grid-row</code>.
    testString: 'assert(code.match(/.item5\s*?{[\s\S]*grid-row\s*?:\s*?2\s*?\/\s*?4\s*?;[\s\S]*}/gi), "<code>item5</code> class should have a <code>grid-row</code> property that has the value of <code>2 / 4</code>.");'
Challenge Seed
<style>
  .item1{background:LightSkyBlue;}
  .item2{background:LightSalmon;}
  .item3{background:PaleTurquoise;}
  .item4{background:LightPink;}
  .item5 {
    background: PaleGreen;
    grid-column: 2 / 4;
    /* add your code below this line */
    /* add your code above this line */
  }
  .container {
    font-size: 40px;
    min-height: 300px;
    width: 100%;
    background: LightGray;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 10px;
  }
</style>
<div class="container">
  <div class="item1">1</div>
  <div class="item2">2</div>
  <div class="item3">3</div>
  <div class="item4">4</div>
  <div class="item5">5</div>
</div>
Solution
// solution required