|
老大,我这么写不对吗?为什么搜索时文字又跑到最上面去了。帮忙指点一下吧。
</head>
<body>
//搜索按钮样式
<div style="position: fixed; right: 20px; top: 0;">
<p>
<p>
<p>
<input id="key" type="text" style=" 100px;" size="30"/>
<input type="button" value="下一个" />
<input type="button" value="上一个" />
</div>
//设置相对位置及内容
</body>
<style type="text/css">
<style>
p#p1
{
position:relative;
top: 30px;
}
</style>
<body>
<p id="p1"><h1 style="margin: 0px; padding: 10px; border: 0px; font: bold 24px / 38.4px "Microsoft yahei"; vertical-align: baseline; text-align: center; color: rgb(33, 83, 173);">
</h1>
<h1 style="margin: 0px; padding: 10px; border: 0px; font: bold 24px / 38.4px "Microsoft yahei"; vertical-align: baseline; text-align: center; color: rgb(33, 83, 173);">
</h1>
<h1 style="margin: 0px; padding: 10px; border: 0px; font: bold 24px / 38.4px "Microsoft yahei"; vertical-align: baseline; text-align: center; color: rgb(33, 83, 173);">
xxxxxxx</h1>
<h2 style="margin: 0px; padding: 8px 0px; border: 0px; font: bold 20px / 1.5 楷体; vertical-align: baseline; text-align: center; color: rgb(33, 83, 173);">
(xxxxxxx,2017年10月24日通过)</h2>
<div id="content">
<p style="margin: 0px; padding: 6px 0px; border: 0px; font: 17px / 34px "Microsoft yahei"; vertical-align: baseline; text-indent: 2em; text-align: center;">
<strong>总 纲</strong></p>
<p style="margin: 0px; padding: 6px 0px; border: 0px; font: 17px / 34px "Microsoft yahei"; vertical-align: baseline; text-indent: 2em;">
xxxxxxx,同时xxxxxxx,是中xxxxxxx,代xxxxxxx求,代表xxxxxxx向,代xxxxxxx利益。xxxxxxx义。</p>
</p>
</body>
|
|