選單
×
×
正確!
練習將段落的第一行背景色設定為紅色。 <style> @(18) { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> .intro::first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> p.intro::first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> p::first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> .intro:first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> p.intro:first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
<style> p:first-line { background-color: red; } </style> <body> <p class="intro"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p> </body>
不正確點選這裡 重新嘗試。 正確!下一個 ❯ |
這將重置所有 138 個練習的分數。
您確定要繼續嗎?