开发者

border-radius is not working in Firefox for me on input types

开发者 https://www.devze.com 2023-01-12 01:59 出处:网络
Everything works fine in webkit browsers. But when i\'m trying to use border-radius with input[type=\"url\"] it doesn\'t work. Not even just using input. Nothing still works.

Everything works fine in webkit browsers. But when i'm trying to use border-radius with input[type="url"] it doesn't work. Not even just using input. Nothing still works.

Css

 section.crypter input {
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  padding: 5px;
  }

HTML

<form>
    <input type="url" placeholder="Insert URL" />
    <input 开发者_开发问答type="button" value="Crypt" />
  </form>

Why isn't Firefox letting me style the input?


Looks like you need to style the border first :

input {
border:1px solid #666666;
  border-radius: 15px;
-moz-border-radius :15px;
  -webkit-border-radius: 15px;
  padding: 5px;
  }
0

精彩评论

暂无评论...
验证码 换一张
取 消