菜单
×
×
正确!
练习标题和段落都位于页面顶部。 确保标题位于段落上方。 <style> #mytitle { position: absolute; top: 0; z-index: 1; } #myintro { position: absolute; top: 0; z-index: 0; } </style> <body> <h1 id="mytitle">这是一个标题</h1> <p id="myintro">这是一个段落</p> </body>
<style> h1 { position: absolute; top: 0; z-index: 1; } p { position: absolute; top: 0; z-index: 0; } </style> <body> <h1 id="mytitle">这是一个标题</h1> <p id="myintro">这是一个段落</p> </body>
<style> #mytitle { position: absolute; top: 0; z-index: 1; } p { position: absolute; top: 0; z-index: 0; } </style> <body> <h1 id="mytitle">这是一个标题</h1> <p id="myintro">这是一个段落</p> </body>
<style> h1 { position: absolute; top: 0; z-index: 1; } #myintro { position: absolute; top: 0; z-index: 0; } </style> <body> <h1 id="mytitle">这是一个标题</h1> <p id="myintro">这是一个段落</p> </body>
不正确点击这里重新尝试。 正确!下一题 ❯<style>{ position: absolute; top: 0; : 1; } { position: absolute; top: 0; : 0; } </style> <body> <h1 id="mytitle">这是一个标题</h1> <p id="myintro">这是一个段落</p> </body> |