2
CSS“显示:表列”应该如何工作?
鉴于以下HTML和CSS,我在浏览器中看不到任何东西(撰写本文时最新的Chrome和IE)。一切都崩溃为0x0像素。为什么? <!DOCTYPE html> <html> <head> <style type="text/css"> section { display: table; height: 100%; background-color: grey; } #colLeft { display: table-column; height: 100%; background-color: green; } #colRight { display: table-column; height: 100%; background-color: red; } #row1 { display: table-row; height: 100%; } #row2 { display: table-row; height: 100%; } #row3 { …