更改phpinfo背景色和bug 24095
也许出于无知,我惊讶地发现自己在调用更改phpinfo背景色和bug 24095,php,html,css,Php,Html,Css,也许出于无知,我惊讶地发现自己在调用phpinfo()时无法更改html页面的主体颜色 进一步的调查使我认为这一定与bug 24095()有关 换句话说,这是行不通的: <html> <head> <title>My Page: info PHP</title> <meta charset="UTF-8"> <style> body { background-color: darkG
phpinfo()
时无法更改html页面的主体颜色
进一步的调查使我认为这一定与bug 24095()有关
换句话说,这是行不通的:
<html>
<head>
<title>My Page: info PHP</title>
<meta charset="UTF-8">
<style>
body { background-color: darkGray;}
#presentation
{
width:500px;
height: 140px;
text-align: center;
color: lightGray;
margin: auto;
margin-top: 40px;
background-color: darkGray;
}
</style>
</head>
<body>
<div id='presentation'>
<h2>Info about PHP</h2>
<p>
See hereunder the current settings for your server
</div>
<? echo phpinfo(); ?>
</body>
</html>
我的页面:info PHP
正文{背景色:暗灰色;}
#介绍
{
宽度:500px;
高度:140像素;
文本对齐:居中;
颜色:浅灰色;
保证金:自动;
边缘顶端:40px;
背景色:暗灰色;
}
关于PHP的信息
请参阅下面的服务器当前设置
因此,如何在调用
phpinfo()
时更改页面主体颜色?此代码是一个基于css的非常简单的解决方法:
<html>
<head>
<title>My Page: info PHP</title>
<meta charset="UTF-8">
<style>
body { background-color: darkGray; margin: 0 0 0 0;}
#zPHP { background-color: darkGray; }
#presentation
{
width:500px;
height: 140px;
text-align: center;
color: lightGray;
margin: auto;
margin-top: -20px;
padding-top: 40px;
}
</style>
</head>
<body>
<div id='zPHP'>
<div id='presentation'>
<h2>Info about PHP</h2>
<p>
See hereunder the current settings for your server
</div>
<? echo phpinfo(); ?>
</div>
</body>
</html>
我的页面:info PHP
正文{背景色:暗灰色;边距:0;}
#zPHP{背景色:暗灰色;}
#介绍
{
宽度:500px;
高度:140像素;
文本对齐:居中;
颜色:浅灰色;
保证金:自动;
利润上限:-20px;
填充顶部:40px;
}
关于PHP的信息
请参阅下面的服务器当前设置
希望能有所帮助。你最好看看我自己的答案。如果你不在乎的话,对你来说太糟糕了。太棒了……我在适当的时候回复了这里的某个人(见我之前的评论),他争辩说我的帖子无关紧要,并投了反对票,但……他的最初评论已经消失了。Thinkpol?