小编Sli*_*lit的帖子

Flexbox将内部元素的高度设置为0

我有一个flexbox的问题.当我设置段落的高度,并设置其overflowhidden,该款消失Flexbox的div.

这是小提琴:https: //jsfiddle.net/Slit/0yy3q8bL/

代码:

        <div class="N">
            <p>Lorem ipsum</p>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in …
Run Code Online (Sandbox Code Playgroud)

css3 flexbox

7
推荐指数
2
解决办法
6265
查看次数

使用php将"<"插入html文件

有没有办法可以使用PHP 插入<>在HTML文件中.这是代码的一部分

<?php
$custom_tag = $searchNode->nodeValue = "<";
$custom_tag = $searchNode->setAttribute("data-mark", $theme_name);
$custom_tag = $dom->saveHTML($searchNode);
$root = $searchNode->parentNode;
$root->removeChild($searchNode);
$test = $dom->createTextNode("<?php echo '$custom_tag'; ?>");

$root->appendChild($test);
$saved_file_in_HTML = $dom->saveHTML();
$saved_file = htmlspecialchars_decode($saved_file_in_HTML);
file_put_contents("test.html", $saved_file); 
Run Code Online (Sandbox Code Playgroud)

问题是我&lt;使用上面的方法,我想拥有<.

编辑: 完整代码:

    if($searchNode->hasAttribute('data-put_page_content')) {
    $custom_tag = $searchNode->nodeValue = "'; \$up_level = null; \$path_to_file = 'DATABASE/PAGES/' . basename(\$_SERVER['PHP_SELF'], '.php') . '.txt'; for(\$x = 0; \$x < 1; ) { if(is_file(\$up_level.\$path_to_file)) { \$x = 1; include(\$up_level.\$path_to_file); } else if(!is_file(\$up_level.\$path_to_file)) …
Run Code Online (Sandbox Code Playgroud)

html php

6
推荐指数
1
解决办法
206
查看次数

标签 统计

css3 ×1

flexbox ×1

html ×1

php ×1