-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ddcheng2017
committed
Nov 17, 2024
1 parent
05c04b8
commit 0f4dd6b
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div class="rect"></div> | ||
</template> | ||
<style> | ||
.rect { | ||
width: 300px; | ||
height: 300px; | ||
background: linear-gradient(to left, #196aa8, #196aa8) left top no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) left top no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right top no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) right top no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) left bottom no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) left bottom no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right bottom no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right bottom no-repeat; | ||
background-size: 1px 20px, 20px 1px, 1px 20px, 20px 1px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
# 此处记录一些平时积累的一些demo | ||
# 此处记录一些平时积累的一些demo | ||
|
||
Css 四角边框 | ||
<border/> | ||
<script setup> | ||
import border from '.vitepress/components/example/border.vue' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup> | ||
import Border from '../.vitepress/components/example/border.vue' | ||
console.log(Border, 'Border', Border.toString(), Border.toLocaleString()) | ||
</script> | ||
|
||
# 常见示例 | ||
|
||
## Css 四角边框 | ||
``` | ||
<template> | ||
<div class="rect"></div> | ||
</template> | ||
<style> | ||
.rect { | ||
width: 300px; | ||
height: 300px; | ||
background: linear-gradient(to left, #196aa8, #196aa8) left top no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) left top no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right top no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) right top no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) left bottom no-repeat, | ||
linear-gradient(to bottom, #196aa8, #196aa8) left bottom no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right bottom no-repeat, | ||
linear-gradient(to left, #196aa8, #196aa8) right bottom no-repeat; | ||
background-size: 1px 20px, 20px 1px, 1px 20px, 20px 1px; | ||
} | ||
</style> | ||
``` | ||
效果如下 | ||
<Border/> | ||
|