使用 CSS 设置圆形、重复和拉伸的边框图像
border-image-repeat 属性用于使用 CSS 设置圆形、重复和拉伸的边框图像。
示例
您可以尝试运行以下代码来实现 border-image-repeat 属性
<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: 40;
border-image-width: 20px;
}
</style>
</head>
<body>
<p id = "borderimg1">This is image border example.</p>
</body>
</html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP