|
菜单
×
×
正确!
练习将段落的第一行背景色设置为红色。 <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 个练习的分数。
您确定要继续吗?