div在浏览器加载时转义父级

时间:2017-11-02 01:08:35

标签: html

这是一个非常奇怪的问题,我100%确定我正确关闭了我的HTML。

如果我有两个以上的子div,它将逃脱父级。字面上。

这样可行:

<div class="info-box">
    <div class="container">
        <div class="info-title">Why would you buy Buy LoL Account?</div>
        <div class="info-description">
            Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place. 
            We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question 
            is why should you buy from us and not the other online sellers? 
        </div>
    </div>
</div>

<div class="info-box">
    <div class="container">
        <div class="info-title">Buy LoL Smurfs Accounts</div>
        A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
        </div>
    </div>
</div>  

但是,如果我再添加一个:

<div class="info-box">
    <div class="container">
        <div class="info-title">Why would you buy Buy LoL Account?</div>
        <div class="info-description">
            Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place. 
            We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question 
            is why should you buy from us and not the other online sellers? 
        </div>
    </div>
</div>

<div class="info-box">
    <div class="container">
        <div class="info-title">Buy LoL Smurfs Accounts</div>
        A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
        </div>
    </div>
</div>  

<div class="info-box">
    <div class="container">
        <div class="info-title">Buy LoL Smurfs Accounts</div>
        A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
        </div>
    </div>
</div>  

我明白了:

enter image description here

但在我的编辑器中看起来并不像那样:

   <div class="info-container">

            <div class="info-box">
            <div class="container">
                <div class="info-title">Why would you buy Buy LoL Account?</div>
                <div class="info-description">
                    Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place. 
                    We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question 
                    is why should you buy from us and not the other online sellers? 
                </div>
            </div>
        </div>

        <div class="info-box">
            <div class="container">
                <div class="info-title">Buy LoL Smurfs Accounts</div>
                A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
                </div>
            </div>
        </div>

        <div class="info-box">
            <div class="container">
                <div class="info-title">Get a Ready-Made League of Legends Lvl 30 Account</div>
                <div class="info-description">
                If you are interested in having your own already developed League of Legends lvl 30 account, then you are in the right place. A level 30 they comes with numerous benefits. If you are a new player, you’ll begin at level 1, which is limited in the number of Champions, summoner spells, masteries, runes, and game modes you have. It’s a very boring level to start from. As you continue playing, you gradually unlock more game features but truth be told, it can take a really long time to unlock the most critical features. You need to reach level 30 to unlock features that allow you to play ranked matches, which are where all the fun in LoL is found. We provide you with a faster way to get to this level. Simply buy a level 30 account and begin playing those exciting ranked matches right away. You don’t need to spend months trying to level up.
                </div>
            </div>
        </div>

        <div class="info-box">
            <div class="container">
                <div class="info-title">The Difference Between Unranked and Ranked Accounts</div>
                <div class="info-description">
                The major difference between an unranked and a ranked League of Legends account can be described as the difference between playing a normal casual game and playing a highly competitive game. Ranked matches are more exciting and highly competitive than unranked accounts, adding fun and enjoyment to the game. You cannot play a ranked game until you have a level 30 summoner, Ranked BlazingBoost, and 16 Champions. We have ranked accounts that are ready for competitive matches. With our already developed level 30 League of Legends account, you can begin playing exciting ranked matches immediately. 
                </div>
            </div>
        </div>

        <div class="info-box">
            <div class="container">
                <div class="info-title">Get NA or EUW Accounts</div>
                <div class="info-description">
                You can buy a LoL account from us regardless of your location. We sell uranked accounts for different geographic regions including North America and EUW. Players from the US and Canada are usually connected via the NA server while their European counterparts connect via the EUW server. 
        We have both ranked and unranked accounts for different regions. They are all safe accounts that you can use without fear of running into a sudden ban. We also provide safe payment processing and instant delivery for accounts in every region worldwide. 
                </div>
            </div>
        </div>

    </div>

我在这里做错了什么?

1 个答案:

答案 0 :(得分:0)

您的代码中还有一个# ls /etc/php.d 10-opcache.ini 20-dom.ini 20-gettext.ini 20-mbstring.ini 20-shmop.ini 20-sysvsem.ini 20-xsl.ini 30-wddx.ini 20-bz2.ini 20-exif.ini 20-gmp.ini 20-mysqlnd.ini 20-simplexml.ini 20-sysvshm.ini 20-zip.ini 30-xmlreader.ini 20-calendar.ini 20-fileinfo.ini 20-iconv.ini 20-pdo.ini 20-sockets.ini 20-tokenizer.ini 30-mysqli.ini opcache-default.blacklist 20-ctype.ini 20-ftp.ini 20-imap.ini 20-phar.ini 20-sqlite3.ini 20-xml.ini 30-pdo_mysql.ini 20-curl.ini 20-gd.ini 20-json.ini 20-posix.ini 20-sysvmsg.ini 20-xmlwriter.ini 30-pdo_sqlite.ini 因为您没有为第二个和第三个子节点添加# cat /etc/php.d/20-posix.ini ; Enable posix extension module extension=posix.so ,请尝试以下操作:

</div>

为避免此类问题,请尝试使用具有基本功能的IDE来检查HTML的正确性。