html - IE css 按钮外边框

标签 html internet-explorer button css

我的按钮适用于除 IE 以外的所有其他浏览器。我认为“border-radius”应该适用于 IE?

Screenshot of button that isn't styled correctly

.simpleHelp {
  border-top: 1px solid #ffffff;
  background: #910330;
  background: -webkit-gradient(linear, left top, left bottom, from(#790228), 
  to(#910330));
  background: -webkit-linear-gradient(top, #790228, #910330);
  background: -moz-linear-gradient(top, #790228, #910330);
  background: -ms-linear-gradient(top, #790228, #910330);
  background: -o-linear-gradient(top, #790228, #910330);
  padding: 10.5px 21px;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
  -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
  -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
  box-shadow: rgba(0,0,0,1) 0 1px 0;
  text-shadow: rgba(0,0,0,.4) 0 1px 0;
  color: #ffffff;
  font-size: 17px;
  font-family: Georgia, Serif;
  text-decoration: none;
  vertical-align: middle;
 }

最佳答案

Border-radius (and, in fact, any CSS3) only works on IE9+但是,您可以使用名为 CSS3PIE 的有趣小库将 CSS3 内容“改造”到旧版本的 IE9 上.如果您真的需要在 IE 中使用边框和阴影,那么 CSS3PIE 就是您的不二之选。然而,让旧版浏览器优雅地降级也是可以的。

关于html - IE css 按钮外边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12407909/

相关文章:

javascript - -webkit-background-size 不适用于 jQuery Css

java - 如何克服 Internet Explorer 中 selenium web 驱动程序的 ssl 证书错误

javascript - IE 6、7、8 中的 Ajax 问题

html - 居中 flex 元素,同时将一个元素放在 Angular 落

html - 试图在我的导航栏中居中图像

javascript - jquery inArray 的奇怪 ie 行为

android - 拖动和按下按钮 - android

xcode - XCode 4 中隐藏的运行/停止按钮

html - 编辑 HTML 选择按钮的 CSS 样式

php - 上传多个文件 HTML5/PHP