gpt4 book ai didi

html - 表单标签 + 数据未正确居中

转载 作者:太空宇宙 更新时间:2023-11-04 16:00:09 26 4
gpt4 key购买 nike

请使用以下方式登录我的网站:

用户名:test密码:测试

然后转到http://www.budgie.richardcmpage.com/profile.php

我试图在页面中央获取个人资料信息(仅顶部部分,忽略底部表格),但它不太正确。

    <div id="profile_bg">

<h1>Profile</h1>
<div class="middle">
<ul class="headers">
<li>Username: <span class="output_username"> <?php echo $username ?></span> </li>
<li>Full Name: <span class="output_fullname"><?php echo $fullname ?></span> </li>
<li>Email Address: <span class="output_email"><?php echo $email ?></span> </li>
<li>Location: <span class="output_location"><?php echo $location ?></span> </li>
<li>Country: <span class="output_country"><?php echo $country ?></span> </li>
</ul>
</div>
</div>

CSS


#profile_bg{
display:block;
margin-left:auto;
margin-right:auto;
width:600px;
height:800px;
background-color:#42592C;
font-size:13px;
}

.middle{
display:block;
margin-left:auto;
margin-right:auto;
width:280px;
height:110px;
}

.headers {
list-style:none;
margin-top:10px;
}

最佳答案

我不确定这是不是你的意思,但它会居中。

.headers {  
list-style:none;
margin-top:10px;
text-align:center;
}

关于html - 表单标签 + 数据未正确居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9928096/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com