我正在使用这个代码库(一切正常)。我只是想让输入类型与页面的中心对齐(现在将所有内容对齐到左边),但是这个属性不能插入到代码中,因为它给了我很多php错误。你有什么建议吗?这是代码:
header('Content-Type: text/html; charset="'.CHARSET.'"');
echo '<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"><meta charset="'.CHARSET.'"><title></title></head><body>'.
'<form name="pf" action="'.$_SERVER['REQUEST_URI'].'" method="post">'.
'<input type="password" name="pw" id="pw" autofocus>'.
'<input type="submit" name="su" value="'.TEXT_LOGIN.'">'.
'</form></body></html>';
session_write_close();
exit;
你可以设置<body style="text-align: center;">