Blogger Information
Blog 28
fans 0
comment 0
visits 15748
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
前端作业-CSS1
︷肉園耔︷
Original
618 people have browsed it

DOCTYPE

  1. -实例演示字体图标的用法:
  2. 首先去阿里矢量图的网站下载使用
  3. <head>
  4. <link rel="stylesheet" type="text/css" href="下载的文件">
  5. <style>
  6. icn-my{
  7. color:red;
  8. font-size:50px;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <i class="icofont icon-my">
  14. </body>
  15. -布局的原则与元素的默认排列方式与元素类型
  16. 从左到右从,上到下,二维空间布局;
  17. 元素类型:独占一行的块元素div和行内元素span
  18. 实例:
  19. <!DOCTYPE html>
  20. <html lang="en">
  21. <head>
  22. <meta charset="UTF-8">
  23. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  24. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  25. <title>Document</title>
  26. <style>
  27. div .d{ height: 250px;
  28. width: 50%;
  29. float: left;
  30. border: 1px solid red;
  31. background-color:saddlebrown ;
  32. box-sizing:border-box;
  33. }
  34. .s{
  35. border: 1px solid yellowgreen;
  36. background-color:blueviolet ;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div>
  42. <div class="d">我是块元素</div>
  43. <div class="d">我是块元素</div>
  44. </div>
  45. <span class="s">我是行内元素</span>
  46. <span class="s">我是行内元素</span>
  47. </body>
  48. </html>
  49. - box-sizing:解决了某种元素的来并排适用指定的区域.
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post