这段代码有什么问题?

时间:2017-06-25 09:49:10

标签: html

我是一个HTML新手&我似乎无法弄清楚我刚写的代码的问题。当然,XXXX不算数;-)

我确定这段代码的样式能让我得到我想要的结果,但奇怪的是,当我在我的网站或scratchpad.io(我用来测试的网站)上运行此代码时在实施之前输出代码)

<form action="XXXX" method="post">
<input type="hidden" name="FORM_ID" value="XXXX">
<input type="hidden" name="COMPLETE_URL" value=“XXXX”>
.body {
  padding: 20px;
}

* {
  font-family: Arial, sans-serif;
  font-size: 15pt;
      margin: 0;
  padding: 0;
  border: none;
}

.send {
  background: #62b4f5;
  color: #fff;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
  padding: 10px 30px;
  font-size: 13pt;
  box-shadow: 0px 2px 5px 0px rgba(173,173,173,0.5);
  margin-left: -6px;
}

.send:hover {
  font-weight: 700;
  padding: 10px 29px;
}

input[type="text"] {
  width: 300px;
  border-radius: 4px 0 0 4px;
  padding: 10px 20px;
  box-shadow: 0px 2px 5px 0px rgba(173,173,173,0.5);
  outline: none;
}

.suggestion {
  padding: 5px 15px;
}

.suggestion:hover {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
}

#autosuggest {
  position: absolute;
  top: 70px;
  background: rgba(0,0,0,0.05);
  width: 400px;
}
</style>
</form>

1 个答案:

答案 0 :(得分:0)

找不到开头标记<style>