【发布时间】:2014-11-09 11:53:10
【问题描述】:
我有一个使用以下代码的非常基本的网页。 标题栏允许我不想要的滚动。 我确定这将是我糟糕的 HTML 代码。谁能指出导致滚动的错误原因? 该代码实际上是在 tasker for android 内的场景 web elemen 中使用的。
<!--full page style--!>
<body style="width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
display: block;">
</body>
<style type="text/css">
.otto {
text-align: center;
font: bold 20px Roboto;
padding: 10px 0;
background: #03a9f4;
width: 100%;
height: 100%;
color: white;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5)}
</style>
<h1 class="otto">Enter fuel fill up date</h1>
</head>
</html>
【问题讨论】:
-
请进一步解释您的问题并说明您使用的是哪个浏览器?
-
请提供示例或使用jsfiddle.net
-
感谢两位的回答,但我仍然得到不需要的滚动?