使用 CSS 設定圓角、重複和拉伸的邊框影像
border-image-repeat 屬性可用於設定圓角、重複和拉伸的邊框影像,並使用 CSS。
示例
你可以嘗試執行以下程式碼,以實現 border-image-repeat 屬性
<html>
<head>
<style>
#borderimg1 {
border: 15px solid transparent;
padding: 15px;
border-image-source: url(https://tutorialspoint.tw/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