Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE中使用的边界半径(所有版本)_Html_Css - Fatal编程技术网

Html IE中使用的边界半径(所有版本)

Html IE中使用的边界半径(所有版本),html,css,Html,Css,如何在IE.所有浏览器中使用边框半径 因为firefox、chrome支持边框半径,但如何用于IE?您需要尝试以下方法: .my-block { -moz-border-radius: 10px; /* Firefox */ -webkit-border-radius: 10px; /* Safari, Chrome */ -khtml-border-radius: 10px; /* KHTML */ border-radius: 10px; /* CSS3 */ /* Дл

如何在IE.所有浏览器中使用边框半径

因为firefox、chrome支持边框半径,但如何用于IE?

您需要尝试以下方法:

.my-block {
  -moz-border-radius: 10px; /* Firefox */
  -webkit-border-radius: 10px; /* Safari, Chrome */
  -khtml-border-radius: 10px; /* KHTML */
  border-radius: 10px; /* CSS3 */
  /* Для плохих IE */
  behavior: url(border-radius.htc); /*IE border-radius */
}

幸运的是,他能以自己的方式赢得比赛。我最喜欢的解决方案之一是使用VML和行为-曲线角。要使用merge border-radius.htc,我们在CSS旁边添加了以下代码:花时间

至少IE 10支持border-radius,因此您应该更具体一些,不要在这里包含所有版本。border-radius功能并不重要,它只是某种UI增强,所以对于其他版本,我们只接受尖锐的直角。我想很多人会很快切换到最新版本。你可以使用JS polyfill,比如IE8复古兼容性