Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 第二个div包含在第一个div中,即使它们不同并且flex-box不工作 哲学_Html_Css_Flexbox - Fatal编程技术网

Html 第二个div包含在第一个div中,即使它们不同并且flex-box不工作 哲学

Html 第二个div包含在第一个div中,即使它们不同并且flex-box不工作 哲学,html,css,flexbox,Html,Css,Flexbox,遵循旧学院的理念,泽诺将哲学分为三个部分:逻辑(一门广泛的学科,包括修辞学、语法、感知和思维理论);物理学(不仅是科学,还有宇宙的神圣本质);以及伦理,其最终目标是通过按照自然的正确生活方式实现幸福。 在处理逻辑时,芝诺受到了斯蒂尔波和其他巨人的影响。泽诺敦促有必要为逻辑奠定基础,因为智者必须知道如何避免欺骗。西塞罗指责泽诺在可理解和不可理解方面不如他,允许自由意志在区分感官印象方面给予同意的力量。 我想要一个部分,其中有标题和文本的一面和图片的另一面。因此,我创建了一个部分,其中有两个

遵循旧学院的理念,泽诺将哲学分为三个部分:逻辑(一门广泛的学科,包括修辞学、语法、感知和思维理论);物理学(不仅是科学,还有宇宙的神圣本质);以及伦理,其最终目标是通过按照自然的正确生活方式实现幸福。

在处理逻辑时,芝诺受到了斯蒂尔波和其他巨人的影响。泽诺敦促有必要为逻辑奠定基础,因为智者必须知道如何避免欺骗。西塞罗指责泽诺在可理解和不可理解方面不如他,允许自由意志在区分感官印象方面给予同意的力量。


我想要一个部分,其中有标题和文本的一面和图片的另一面。因此,我创建了一个部分,其中有两个div,第一个有标题和段落,第二个有图片,然后在css中我将display作为flex。但它不起作用。当我检查它时,它显示第二个div只包含在第一个div中

所以,我有两个问题

  • 为什么第二个div包含在第一个div中
  • 如何使flex box工作

  • 你唯一做错的事情是你没有关闭第一个div,这就是为什么你在第一个div中得到第二个div的原因

    只要关上你的门,就行了

    <section class="third-part">
    <div class="first">
    <h2>PHILOSOPHY</h2>
    <p>Following the ideas of the Old Academy, Zeno divided philosophy into three parts: logic (a wide subject including rhetoric, grammar, and the theories of perception and thought); physics (not just science, but the divine nature of the universe as well); and ethics, the end goal of which was to achieve eudaimonia through the right way of living according to Nature. 
        <br> <br>In his treatment of Logic, Zeno was influenced by Stilpo and the other Megarians. Zeno urged the need to lay down a basis for Logic because the wise person must know how to avoid deception, Cicero accused Zeno of being inferior to his into the comprehensible and the incomprehensible, permitting for free-will the power of assent (sinkatathesis/συνκατάθεσις) in distinguishing between sense impressions.
    </p>
    <div>
    <div class="statue">
        <img src="https://i.postimg.cc/sx21rnDB/Image-2-2x.png
            "class="statue" alt="statue of him">
    </div>
    
    
    哲学
    遵循旧学院的理念,泽诺将哲学分为三个部分:逻辑(一门广泛的学科,包括修辞学、语法、感知和思维理论);物理学(不仅是科学,还有宇宙的神圣本质);以及伦理,其最终目标是通过按照自然的正确生活方式实现幸福。
    

    在处理逻辑时,芝诺受到了斯蒂尔波和其他巨人的影响。泽诺敦促有必要为逻辑奠定基础,因为智者必须知道如何避免欺骗。西塞罗指责泽诺在可理解和不可理解方面不如他,允许自由意志在区分感官印象方面给予同意的力量。

    
    哲学
    遵循旧学院的理念,泽诺将哲学分为三个部分:逻辑(一门广泛的学科,包括修辞学、语法、感知和思维理论);物理学(不仅是科学,还有宇宙的神圣本质);以及伦理,其最终目标是通过按照自然的正确生活方式实现幸福。
    

    在处理逻辑时,芝诺受到了斯蒂尔波和其他巨人的影响。泽诺敦促有必要为逻辑奠定基础,因为智者必须知道如何避免欺骗。西塞罗指责泽诺在可理解和不可理解方面不如他,允许自由意志在区分感官印象方面给予同意的力量。


    希望这有帮助

    你的CSS在哪里?是的,这很有帮助。我不知道我是怎么错过的。我检查了三次!
    <div class="first">
    <h2>PHILOSOPHY</h2>
    <p>Following the ideas of the Old Academy, Zeno divided philosophy into three parts: logic (a wide subject including rhetoric, grammar, and the theories of perception and thought); physics (not just science, but the divine nature of the universe as well); and ethics, the end goal of which was to achieve eudaimonia through the right way of living according to Nature. 
        <br> <br>In his treatment of Logic, Zeno was influenced by Stilpo and the other Megarians. Zeno urged the need to lay down a basis for Logic because the wise person must know how to avoid deception, Cicero accused Zeno of being inferior to his into the comprehensible and the incomprehensible, permitting for free-will the power of assent (sinkatathesis/συνκατάθεσις) in distinguishing between sense impressions.
    </p>
    <div>
    
    <div class="first">
    <h2>PHILOSOPHY</h2>
    <p>Following the ideas of the Old Academy, Zeno divided philosophy into three parts: logic (a wide subject including rhetoric, grammar, and the theories of perception and thought); physics (not just science, but the divine nature of the universe as well); and ethics, the end goal of which was to achieve eudaimonia through the right way of living according to Nature. 
        <br> <br>In his treatment of Logic, Zeno was influenced by Stilpo and the other Megarians. Zeno urged the need to lay down a basis for Logic because the wise person must know how to avoid deception, Cicero accused Zeno of being inferior to his into the comprehensible and the incomprehensible, permitting for free-will the power of assent (sinkatathesis/συνκατάθεσις) in distinguishing between sense impressions.
    </p>
    </div>