【发布时间】:2014-09-05 21:45:51
【问题描述】:
我的标签有问题。我创建了一个简单的页面,没有 css 文件,只是为了显示我的问题:
只需找到选择字段,尝试选择,然后所有内容都会上升,在页面顶部...
疯了:)
这里是html代码:
<
!DOCTYPE html>
<html>
<head>
<title>Depaco|Strap|Box|Analise</title></title>
</head>
<body>
<header>
<div class="container clearfix">
<p class="packing ">Depaco <span>Box</span></p>
<nav>
<ul>
<li><a href="#" class="curl-top-left">Depaco <span>Stretch</span></a></li>
<li><a href="strap.php" class="curl-top-left">Depaco <span>Strap</span></a</li>
<li><a href="#" class="curl-top-left">Depaco <span>Box</span></a</li>
<li><a href="#" class="curl-top-left">Depaco <span>Analyse</span></a</li>
<li><a href="#"><span>Calculator</span></a</li>
</ul>
</nav>
</div><!-- end containe -->
</header>
<div class="content clearfix">
<form>
<div class="container ">
<div class="left-box">
<p class="red">For theoretical compression strength of box, please fill all fields...</p>
<p class="grey">Depako box is a statistical method that gives the theoretical value of box compression strength. It applies to the RSC boxes.</p>
<div class="roki"><p class="text1-box">Characteristics of box</p></div>
<div class="box-box clearfix"> <!-- Box 1-->
<p class="text">Only for box without Inner carton (reinforcement) and
without laminating the box .</p>
</div><!-- END Box 1-->
</div><!-- end left -->
<div class="right-box">
<img src="" alt="Depako Box" Title="Depako Box" class="strap-img"></img></br></br>
Here is problem: </br></br></br>
<select>
<option value ="sydney">Sydney</option>
<option value ="melbourne">Melbourne</option>
<option value ="cromwell" selected>TRY</option>
<option value ="queenstown">Queenstown</option>
</select>
</br></br></br></br>
<p class="text">Technical requirements for theoretical of compression strength: </br></br>
Maximum dimension of box is: Lx Bx H= 550x 350x 350 mm</br></br>
Maximum grammage of corrugated fiberboard is: 900 g/m2</br></br>
For other cases, please contact us.</br>
</br></p></br></br>
</div><!-- end right -->
</form>
<div class="clearfix"></div>
<footer>
<div id="footer">
<div id="logo">
<img src="images/logo.png" alt="DEPACO logo"></img>
</div><!-- end logo -->
</div>
</div><!-- end container2 -->
</footer>
</div><!-- end content -->
</div><!-- end container -->
</body>
</html>
Tnx,P
【问题讨论】:
-
你的文档类型怎么样了?
-
令您惊讶的
<select>工作正常。 -
仅 JS Fiddle 的输出就应该指出存在不正确关闭的锚标记。
-
这是我的 Chrome 中的打印屏幕:picpaste.com/test-YfkOsWYH.jpg
-
因为您的整个页面都是一个链接,所以您单击它会刷新页面。这会将其移至顶部。