Blogger Information
Blog 10
fans 0
comment 0
visits 3570
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
icon font 和媒体查询的运用
失忆孤独患者
Original
413 people have browsed it
  1. <link rel="stylesheet" href="//at.alicdn.com/t/c/font_3927980_xjos8pca4.css">
  2. <style>
  3. .iconfont {
  4. font-family: "iconfont" !important;
  5. font-size: 50px;
  6. font-style: normal;
  7. -webkit-font-smoothing: antialiased;
  8. -webkit-text-stroke-width: 0.2px;
  9. -moz-osx-font-smoothing: grayscale;
  10. }
  11. @media screen and (min-width:1200px) {
  12. /* 根据屏幕不同宽度 显示不同内容 就叫响应式 */
  13. /* 当屏幕宽度大于1200px */
  14. body {
  15. background-color: red;
  16. }
  17. }
  18. @media screen and (max-width:1199px) and (min-width:800px) {
  19. body {
  20. background-color: blue;
  21. }
  22. }
  23. @media screen and (max-width:799px) {
  24. body {
  25. background-color: brown;
  26. }
  27. }
  28. </style>

</head>

<body>
<div>
<p class="iconfont icon-yaoqinghaoyou"></p>
<span class="iconfont icon-fangwuchuzu"></span>
<span class="iconfont icon-shangpuchuzu"></span>
</div>
</body>

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