练习1_歌词.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <title>Document</title>
  7. <style>
  8. /* h1{
  9. text-align: center;
  10. }
  11. h2{
  12. text-align: center;
  13. } */
  14. .center-text {
  15. text-align: center;
  16. }
  17. .center-content{
  18. text-align: center;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <!-- class属性名 命名规范 -->
  24. <!-- 见名知意 通过名字就能知道大概要作什么用 -->
  25. <!-- 当类名中出现多个单词的时候用“-”进行链接 -->
  26. <!-- <h1 class="center-text">《枫》</h1>
  27. <hr>
  28. <h2 class="center-text">歌手:周杰伦</h2>
  29. <h3 class="center-text">作词人:弹头(宋健彰)</h3>
  30. <h3 class="center-text">作曲人:周杰伦</h3>
  31. <div class="center-text">
  32. <img src="./img/img1.jpg" width="300" alt="歌曲封面" />
  33. </div>
  34. <p class="center-text"> <b>歌词:</b></p>
  35. <p class="center-text">乌云在我们心里搁下一块阴影</p>
  36. <p class="center-text">我聆听沉寂已久的心情</p>
  37. <p class="center-text">清晰透明 就像美丽的风景</p>
  38. <p class="center-text">总在回忆里才看得清</p>
  39. <p class="center-text">被伤透的心能不能够继续爱我</p>
  40. <p class="center-text">我用力牵起没温度的双手</p> -->
  41. <div class="center-content">
  42. <h1>《枫》</h1>
  43. <hr>
  44. <h2>歌手:周杰伦</h2>
  45. <h3>作词人:弹头(宋健彰)</h3>
  46. <h3>作曲人:周杰伦</h3>
  47. <div>
  48. <img src="./img/img1.jpg" width="300" alt="歌曲封面" />
  49. </div>
  50. <p> <b>歌词:</b></p>
  51. <p>乌云在我们心里搁下一块阴影</p>
  52. <p>我聆听沉寂已久的心情</p>
  53. <p>清晰透明 就像美丽的风景</p>
  54. <p>总在回忆里才看得清</p>
  55. <p>被伤透的心能不能够继续爱我</p>
  56. <p>我用力牵起没温度的双手</p>
  57. </div>
  58. </body>
  59. </html>