Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标题显示在我的图像之前并且没有样式。如何解决?
$tytul = wp_title(); echo '<img class="icon" src="http://site.pl/site/icon.png" /><h2>'.$tytul.'</h2>';
wp_title()将打印内容本身,而不是返回它,所以echo wp_title()不会从回声中给你任何东西,但会打印标题。如果你使用var_dump(wp_title()),你会看到标题,那么结果就是NULL。你想要的是:
wp_title()
echo wp_title()
var_dump(wp_title())
NULL
echo '<img class="icon" src="http://site.pl/site/icon.png" /><h2>'; wp_title(); echo '</h2>';
在我的 html 上,我有这个标签供用户从他们的计算机上浏览文件,就像这样
*<form action="SamePageUpload.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <inp