博主信息
博文 34
粉丝 0
评论 0
访问量 32435
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
css-grid布局实战-选做作业
CY明月归
原创
758人浏览过

练习

  1. body {
  2. margin: 40px;
  3. }
  4. .title{
  5. margin: 30px 130px;
  6. }
  7. .box {
  8. height: 235px;
  9. }
  10. .box .content {
  11. display: grid;
  12. background-color: #ffffff;
  13. border-radius: 5px;
  14. }
  15. .box .content .bottom {
  16. display: flex;
  17. flex-direction: column;
  18. place-items: center;
  19. padding: 20px 5px;
  20. gap: 30px;
  21. }
  22. .box .content .bottom .up span{
  23. font-size: 13px;
  24. background-color: rgb(156, 155, 155);
  25. padding: 0 4px;
  26. border-radius: 2px;
  27. color: white;
  28. }
  29. .box .content .bottom .up h5{
  30. padding-left: 5px;
  31. }
  32. .box .content .bottom .up h5:hover{
  33. color: red;
  34. cursor: pointer;
  35. }
  36. .box .content .bottom .down{
  37. font-size: 12px;
  38. color: #c2c4c4;
  39. }
  40. .box .content .bottom .down .sc{
  41. font-size: 16px;
  42. }
  43. .box .content .bottom .down .sc:hover{
  44. color: red;
  45. cursor: pointer;
  46. }
  47. .box .content .bottom .down span{
  48. margin-left: 70px;
  49. margin-right: 10px;
  50. }
  51. .box .content .bottom .up,.down{
  52. display: flex;
  53. flex-direction: row;
  54. place-items: center;
  55. }
  56. .content img {
  57. width: 100%;
  58. border-radius: 5px 5px 0 0;
  59. }
  60. .wrapper {
  61. display: grid;
  62. grid-gap: 30px 20px;
  63. grid-template-columns: repeat(5, 224px);
  64. place-content: center;
  65. }
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学