问答题700/1530下面这段代码中,class为content的元素,实际高度是100px吗?

1<!DOCTYPE html> 2<html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge" /> 7 <title>Static Template</title> 8 9 <style> 10 .parent { 11 display: flex; 12 flex-direction: column; 13 height: 600px; 14 width: 300px; 15 background: yellow; 16 } 17 div { 18 width: 100%; 19 } 20 .header { 21 height: 200px; 22 background: red; 23 } 24 .content { 25 height: 100%; 26 background: blue; 27 } 28 .footer { 29 height: 200px; 30 background: black; 31 } 32 </style> 33 </head> 34 <body> 35 <div class="parent"> 36 <div class="header"></div> 37 <div class="content"></div> 38 <div class="footer"></div> 39 </div> 40 </body> 41</html>
难度:
2022-03-24 创建

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!