输入栏样式-CSS问题 [英] Input Field Styling - CSS problem

查看:48
本文介绍了输入栏样式-CSS问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建如下所示的输入框

i am trying to create an input box like below

这些是我所附的规则

input {
    height:30px;
    width:286px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border-color:#cccccc;
    padding:0 10px;
}

但是我正在得到一个像这样的内盒阴影.

But i am getting an inner box shawdow like this.

有什么主意如何去除内部阴影吗?

Any idea how to remove that inner shawdow ?

在线编辑器: http://jsfiddle.net/c3JCx/

推荐答案

尝试替换:

border-color:#cccccc;

具有:

border: 1px solid #cccccc;

这将使边框具有如第一幅图像所示的纯色...默认的 border-style inset ,并且看起来像"3D"在w3schools中进行了描述(第二张图片)

this will make the border with solid color as shown on the first image ... the default border-style is inset and it looks kind of "3D" as described in w3schools (second image)

这篇关于输入栏样式-CSS问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆