如何使提交按钮显示为将覆盖默认浏览器按钮样式的纯文本?
我在互联网上搜索过,但我发现的只是如何将图片放在提交按钮上。
发布于 2014-01-31 08:36:35
您将需要background-color: transparent; (或者您也可以使用hex )和border: 0;,这将为您提供所需的结果。
input[type="submit"].plain {
border: 0;
background: transparent; /* Or whatever background color you want to use */
}Demo
发布于 2014-01-31 08:38:15
input[type=submit] {
border:none;
background-color:white;
}你可以在这里找到一个例子:
http://jsfiddle.net/f7x35/
发布于 2014-01-31 08:39:44
您可以这样对其进行样式化,然后对其进行必要的调整,使其适合您设计的其余部分。
input[type=submit]{
border: 0px;
background: inherit;
padding: 0;
}background: inherit;是为了确保它遵循你原来的背景色。
https://stackoverflow.com/questions/21475513
复制相似问题