Using python to send an email with HTML content. The email is properly sent but the negative margins are not recognized. Is there a way to convert this code so that it does not use negative margins and is still acceptable in most email readers?
<div style="width:40;">
<img style="height:100px;" src="cid:{msg_image}" alt="LogoHeader" />
<hr style="width:100%;margin-top:-30px;" />
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…