V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
iMath
V2EX  ›  问与答

CSS:请问怎么让我这里的文本垂直居中?

  •  
  •   iMath · 2023-01-09 17:09:39 +08:00 · 346 次点击
    这是一个创建于 473 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Html:

       <script src="//at.alicdn.com/t/font_wucl02m681zia4i.js" type="text/javascript"></script>
        
        <div id="postMeta">
                <!-- 博文分类 -->
                <a rel="nofollow noopener" href="https://www.cnblogs.com/iMath/category/1107555.html" id="catogory">
                 <svg class="icon" aria-hidden="true">
                    <use xlink:href="#icon-fenlei2"></use>
                 </svg>
              </a>
                <!-- 阅读统计 -->
                <div id="postViewCount">
                 <svg class="icon" aria-hidden="true">
                     <use xlink:href="#icon-yuedu1"></use>
                 </svg>
                 <span class="post_view_count">5531</span>
                 </div>
                <!-- 发布日期 -->
                <div>
                    <svg class="icon" aria-hidden="true">
                    <use xlink:href="#icon-history"></use>
                 </svg>
                    <span class="post-date">2018-06-25</span>
                </div>
                <!--  编辑 -->
                <a rel="nofollow noopener" href="https://i.cnblogs.com/EditPosts.aspx?postid=9223247">
                 <svg class="icon" aria-hidden="true" id="icon-bianji">
                    <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-bianji4"></use>
                 </svg>
              </a>
            </div>
    

    CSS:

    #postMeta{
      display: flex;
      justify-content: space-around;
      align-items: center;
    /*   height:100px; */
    
    }
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2806 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:18 · PVG 14:18 · LAX 23:18 · JFK 02:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.