什么机制阻止div完全占据其父母的宽度?

时间:2018-12-10 09:27:59

标签: html css dom parent-child

  <div class="apg apg-text column-dir" data-image-mode="original_mouse" data-mask-effect="disabled" data-mouseover-effect="fade_both" data-title-align="middle-center" style="min-height: 403px;">
        <div class="post-9 apg-post apg-post-text" data-post-id="9" width="1000px">
            <a class="apg-grid-item" href="http://victorbartis.ro/wordpress/project/ambasada-iubirii" width="1000px">
                <div class="post-thumbnail" data-image-width="60">
                    <img src="http://victorbartis.ro/wordpress/wp-content/uploads/2018/12/T1.jpg" style="top: 353px; left: 1014.5px; visibility: hidden; opacity: 0; transform: matrix(1, 0, 0, 1, 0, 0);">
                </div>
                <div class="apg-post-title" width="1000px">
                    <div class="title" data-font="font_iz9ovceku" width="100%" display="inline-block">
                        <p class="calupstanga">AMBASADA IUBIRII </p>
                        <p class="calupmijloc">&nbsp;</p>
                        <p class="calupdreapta"> undeva in oras</p>
                    <div style="clear: both;"></div>
                </div>
            </div>
        </a>
    </div>
</div>

手动放置width=display=属性,以使内部元素与最外部元素的宽度匹配。 尝试使用多个值,例如auto100%10001000px,并检查marginpadding属性为0。我猜有些其他元素的属性正在阻碍。有提示吗?

0 个答案:

没有答案