The problem of title spacing in articles

article link address: ide/ArticleInfo.html?art_id=4678" rel=" nofollow noreferrer "> http://test1.baoxiaoyun.net/D.
has the following effect when there is no picture:
clipboard.png


Jun.17,2021

Why do we have to set the margin of the title, but not the margin of the picture?


.share_title{/**/
  height: initial; 
}
.share_title p{ /*pshare_title80pxclassp*/
  line-height: 20px;
  height: 20px;
}

.share_title.no-img a{ /*sectionno-imgclassitem_detailwidth:100%, */
  height: 35px;
}

.share_title.no-img .item_detail{ /*item_detailstyle="width:100%;" css*/
  width: 100%;
}

the corresponding html is

<section class="share_title">
    <a href="https://img.codeshelper.com/upload/img/2021/06/17/1te4nxx4qpn18124.gif" data-bxysrc="/src/uploads/article/39/82/70/340982f418.jpg" alt="�e��b�e�دrV������^j����-��݊�-��ڂ��[��-���[ly�b�w%j�*��l��޶+ezz"�
���-���rV��z"�-�֡��꺋a���׬�Vڣ��+���+چ��"https://www.codeshelper.com/list/ide/1.html" target="_blank" class="keylink">ide/ArticleInfo.html?art_id=4856">
      <div class="item_detail">
        <h3>12</h3>
      </div>
      <div class="clear"></div>
    </a>
    

</section>
Menu