html居中有关问题求各位指导下 多谢
html居中问题求各位指导下 谢谢
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
案件检索
</title>
</head>
<body>
<center>
<h1><img src="http://www.ithov.com/uploads/userup/0/13BF3U2-5115.jpg" title="yahoo"></h1>
</center>
<form action="save.php" method="post" >
<center>
<label>关键字:</label>
<input type="radio" value="1" name="change" />
<label>关键词</label>
<input type="radio" value="2" name="change" />
<label>标题</label>
<input name="change" type="radio" value="2" />
<label>作者</label>
</center>
</form>
<body>
<center>
<!-- search-box (文本框) -->
<div id="u0" class="ax_文本框">
<input id="u0_input" type="text" value="请输入关键词" data-label="search-box"style="width:530; height:36"text size="60"/>
<!-- Unnamed (提交按钮) -->
<input id="u1_input" type="submit" style="width:50; height:36"value="搜索"/>
</center>
</div>
<style type="text/css">
span{font-size:13px;
}
</style>
<style type="text/css">
/* 加粗 */
div span:hover
{
font-weight: bold;
}
</style>
<div style="float:right;">
<div id="u1" class="text">
<p><span>• 返回主页</span></p>
</div>
<div id="u2" class="text"><p>
<span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;">
•
</span><span style="font-family:'Arial Negreta', 'Arial';font-weight:700;color:#000000;">
检索项
</span><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;font-weight: bold;">
:标题
</span>
</p></div>
<div id="u3" class="text">
<p><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;">
•
</span><span style="font-family:'Arial Negreta', 'Arial';font-weight:700;color:#000000;">
检索值:
</span><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;font-weight: bold;">
科技
</span></p></div>
<style type="text/css">
#div1{
font-size:13px;
}
</style>
<div id="div1">到中国科技论文在线检索“科技”</div>
</body>
</html>
最下面的 到中国科技论文在线检索“科技” 应该如何居中求大神指导 center试过无效 style="width:100%;align:center;"也试过了 如果是我使用错了请各位指出 谢谢
------解决思路----------------------
改动是这些是这些
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
案件检索
</title>
</head>
<body>
<center>
<h1><img src="http://www.ithov.com/uploads/userup/0/13BF3U2-5115.jpg" title="yahoo"></h1>
</center>
<form action="save.php" method="post" >
<center>
<label>关键字:</label>
<input type="radio" value="1" name="change" />
<label>关键词</label>
<input type="radio" value="2" name="change" />
<label>标题</label>
<input name="change" type="radio" value="2" />
<label>作者</label>
</center>
</form>
<body>
<center>
<!-- search-box (文本框) -->
<div id="u0" class="ax_文本框">
<input id="u0_input" type="text" value="请输入关键词" data-label="search-box"style="width:530; height:36"text size="60"/>
<!-- Unnamed (提交按钮) -->
<input id="u1_input" type="submit" style="width:50; height:36"value="搜索"/>
</center>
</div>
<style type="text/css">
span{font-size:13px;
}
</style>
<style type="text/css">
/* 加粗 */
div span:hover
{
font-weight: bold;
}
</style>
<div style="float:right;">
<div id="u1" class="text">
<p><span>• 返回主页</span></p>
</div>
<div id="u2" class="text"><p>
<span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;">
•
</span><span style="font-family:'Arial Negreta', 'Arial';font-weight:700;color:#000000;">
检索项
</span><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;font-weight: bold;">
:标题
</span>
</p></div>
<div id="u3" class="text">
<p><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;">
•
</span><span style="font-family:'Arial Negreta', 'Arial';font-weight:700;color:#000000;">
检索值:
</span><span style="font-family:'Arial Normal', 'Arial';font-weight:400;color:#333333;font-weight: bold;">
科技
</span></p></div>
<style type="text/css">
#div1{
font-size:13px;
}
</style>
<div id="div1">到中国科技论文在线检索“科技”</div>
</body>
</html>
最下面的 到中国科技论文在线检索“科技” 应该如何居中求大神指导 center试过无效 style="width:100%;align:center;"也试过了 如果是我使用错了请各位指出 谢谢
------解决思路----------------------
改动是这些是这些
#div1{float:right; width:100%; text-align:center; font-size:13px;}
<div id="parent" style="width:100%; float:left;">
<!--.....原来你的内容......-->
</div>
</div #parent结束>
<div id="div1">到中国科技论文在线检索“科技”</div>