就像标题所说的那样简单。
照片代码:
<center> <a href="home.php" title="logo"><img src="images/header.jpg" width="860" height="250" alt="logo"> </img> </a> </center>
文本代码:
<?php
session_start();
if(isset($_SESSION['SESS_MEMBER_ID']) && ($_SESSION['SESS_MEMBER_PASSWORD']))
{
echo "Welcome "."<b>".$_SESSION['SESS_MEMBER_ID']."</b>". " ";
echo '<a href="logout.php" title="Logout"><b>Logout</b></a>';
} ?>
答案 0 :(得分:0)
你可以使用表
<tr>
<td>Image</td><td>text</td>
</tr>
或使用div
<div style="display:inline-block">
image
</div>
<div style="display:inline-block">
text
</div>
答案 1 :(得分:0)
基本css盒模型。
Div容器 - 对齐ceenter。 图像 - 文字 关闭div。
除非你的某些CSS覆盖了它不应该的东西,否则你在技术上不需要任何其他东西。
你遇到麻烦可以做两件事。
Div subcontinent - width:#px; margin:auto;
或者 图像 - 显示:内联块;
在会话中存储密码既符合PCI合规性又是一个主要的安全风险btw。冒险即使存储md5加密。