CSS border-image-slice
cssweb developmentfront end technology更新于 2025/3/20 4:28:17
CSS border-image-slice 属性用于对边框图像进行切片。
示例
您可以尝试运行以下代码来实现 border-image-slice 属性 −
<html>
<head>
<style>
#borderimg1 {
border: 15px solid transparent;
padding: 15px;
border-image-source: url(https://tutorialspoint.com/css/images/border.png);
border-image-repeat: round;
border-image-slice: 50;
}
</style>
</head>
<body>
<p id = "borderimg1">This is image border example.</p>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

