嗨,我正在使用下面的代码,我的文本没有在 Li 中水平对齐。HTML 代码:
<body>
<div id="image_header">
<img src="header.jpg" width="500" height="54" />
</div>
<div id="header">
<div id="left_panel">
<h2 id="heading" align="cente">Welcome to the <br />
Help Center</h2>
<div id="image_src" align="center">
<img src="Doc_image.jpg" align="middle" />
</div>
</div>
<div id="right_panel">
<p><strong>
xxx</strong>
</p>
</div>
</div>
<div id="footer">
<div id="left_footer">
<div id="img_left">
<img src="separator_bar.jpg"/>
</div>
<div>Help Topics </div>
<br />
<div id="left_list">
<ul >
<li>General Information</li>
<li>Getting Started</li>
<li>Functions</li>
<li>Additional Features</li>
</ul>
<br />
</div>
</div>
<div id="right_footer">
<div id="img_right">
<img src="separator_bar.jpg" />
</div>
<div>Manuals </div>
<br />
<div id="right_list">
<ul>
<li>Guide</li>
<li> User Guide</li>
</ul>
<br />
</div>
</div>
</div>
CSS:
div {
background-color:#ebeff5;
}
#image_header{
background-color:#FFF
}
#header,#footer {
width:500px;
position:relative;
overflow:hidden;
}
#left_panel,#left_footer{
width:250px;
float:left;
text-align:center
}
#right_panel,#right_footer{
width:250px;
float:right;
text-align:center
}
#left_panel h2{
color:#002e5c;
font:Arial, Helvetica, sans-serif
}
#right_panel p {
letter-spacing:-1px;
padding:0px 10px;
font:Arial, Helvetica, sans-serif;
color:#002e5c
}
#left_list ul,#right_list ul{
list-style-position:inside;
list-style-type:none;
padding:0px;
margin:0px;
}
#left_list ul li,#right_list ul li{
background-image:url(web%20bullet.jpg);
background-repeat:no-repeat;
background-position:55px 5px;
padding-left:15px;
}
请建议附上图片!