When an in-line element is set to float, will it automatically become a block-level element display?

<style>
.jf-header-box {
    width: 1100px;
    height: 50px;
    margin: 0 auto;
    background-color: https://api-v5.segmentfault.com/question/-sharp3a5795;
}
.jf-no-login-box {
    float: right;
}
.jf-login-user-img {
    float: left;
    margin: 6px 20px 0 0;
}
.jf-login-user-img img {
    width: 40px;
    height: 40px;
}
</style>
<div class="jf-header-box">
    <div class="jf-no-login-box">
        <a href="https://api-v5.segmentfault.com/question/-sharp" class="jf-login-user-img">
            <img src="http://jfinal.com/upload/avatar/18/93704.jpg">
        </a>
    </div>
</div>

here a is an inline element, which is set to float float: left , and margin is displayed effectively.
https://api-v5.segmentfault.com/question/"https://api-v5.segmentfault.com/question/"

float: left
https://api-v5.segmentfault.com/question/"https://api-v5.segmentfault.com/question/"

at this point, change to < div class=https://api-v5.segmentfault.com/question/" jf-login-user-img https://api-v5.segmentfault.com/question/"> < / div > , margin shows the effect again.

Whether

automatically becomes a block-level element after you set a float for an in-line element.

Css
Apr.03,2021

tagging a becomes an inline block element, not a complete block element

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3883a-2c134.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3883a-2c134.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?