首页 > 解决方案 > 行间距相同

问题描述

我有以下信息块:

        <div class="info-block">
            <p style="font-size: 18px; margin-top: 18px; margin-left: 10px; white-space: nowrap; width: 95%; overflow: hidden; text-overflow: ellipsis; "><?=$last['title']?></p>
            <p style="font-size: 18px; margin-top: 8px; margin-left: 10px;"><span class="price"><?=$last['price']?></span> тг.</p>
            <p style="font-size: 15px; margin-top: 18px; margin-left: 10px;"><?php
                if ($last['book_type'] ==   "book") echo "<img src='/images/green-time.png' style='width: 20px;vertical-align: top;'><span> ".$last['book_title']."</span>";
                else echo "<img src='/images/red-time.png' style='width: 20px;vertical-align: top;'><span> ".$last['book_title']."</span>";
            ?></p>

所以有三行,我想让第三行和第二行之间的空格与第一行和第二行之间的空格相同:

在此处输入图像描述

谢谢,

标签: htmlcss

解决方案


抱歉,我的错误已解决


推荐阅读