当前位置:网站首页>Outline and box shadow to achieve the highlight effect of contour fillet
Outline and box shadow to achieve the highlight effect of contour fillet
2022-07-25 15:13:00 【Deep sea blue mountains】
outline The properties and border Very similar , It can achieve the effect of element highlight or external outline transparency , But there is no fillet effect , have access to box-shadow simulation outline The fillet effect of
outline Definition and Usage
outline ( outline ) Is a line drawn around an element , On the edge of the border , Can play a role in highlighting elements .
notes : Contours don't take up space , It doesn't have to be rectangular .
outline Shorthand property sets all profile properties in a declaration .
You can set the following properties in order :
- outline-color
- outline-style
- outline-width
box-shadow Definition and Usage
box-shadow Property to add one or more shadows to the box
grammar
box-shadow: h-shadow v-shadow blur spread color inset;
notes :box-shadow Add one or more shadows to the box . This property is a comma separated list of shadows , Every shadow is made by 2-4 Length value 、 Optional color values and optional inset Key words to define . The value of the omitted length is 0
| value | describe |
|---|---|
| h-shadow | It's necessary . The position of the horizontal shadow . Allow negative values . |
| v-shadow | It's necessary . The position of the vertical shadow . Allow negative values . |
| blur | Optional . A fuzzy distance . |
| spread | Optional . Size of shadow . |
| color | Optional . Color of shadow . see also CSS Color value . |
| inset | Optional . Add external shadow (outset) Change to internal shadow . |
box-shadow simulation outline The fillet effect of
It is good to achieve the transparent effect or highlight effect of the outer contour
outline effect
.outline {
outline: solid 10px rgba(34, 139, 34, 0.5);
}box-shadow effect
.box-shadow {
box-shadow: 0 0 0 10px rgba(245, 0, 0, 0.5);
}
边栏推荐
- [C topic] force buckle 876. Intermediate node of linked list
- 6月产品升级观察站
- spark分区算子partitionBy、coalesce、repartition
- "Ask every day" briefly talk about JMM / talk about your understanding of JMM
- Simulate setinterval timer with setTimeout
- 处理ORACLE死锁
- "Ask every day" what is volatile
- Spark获取DataFrame中列的方式--col,$,column,apply
- Spark002 --- spark task submission, pass JSON as a parameter
- Pl/sql creates and executes ORALCE stored procedures and returns the result set
猜你喜欢

Recommend 10 learning websites that can be called artifact

Spark提交参数--files的使用

npm的nexus私服 E401 E500错误处理记录
![[Nacos] what does nacosclient do during service registration](/img/76/3c2e8f9ba19e36d9581f34fda65923.png)
[Nacos] what does nacosclient do during service registration

如何解决Visual Studio中scanf编译报错的问题

基于OpenCV和YOLOv3的目标检测实例应用

Implement a simple restful API server

图片裁剪cropper 示例
[Android] recyclerview caching mechanism, is it really difficult to understand? What level of cache is it?

6月产品升级观察站
随机推荐
Recommend 10 learning websites that can be called artifact
LeetCode_ String_ Medium_ 151. Reverse the words in the string
MySQL之事务与MVCC
什么是物联网
[C topic] force buckle 876. Intermediate node of linked list
图片的懒加载
Yarn: the file yarn.ps1 cannot be loaded because running scripts is prohibited on this system.
打开虚拟机时出现VMware Workstation 未能启动 VMware Authorization Service
bridge-nf-call-ip6tables is an unknown key异常处理
Spark sql 常用时间函数
String type time comparison method with error string.compareto
The implementation process of inheritance and the difference between Es5 and ES6 implementation
Copy files / folders through Robocopy
SublimeText-win10光标跟随问题
Implementation of redis distributed lock
Spark-SQL UDF函数
剑指Offer | 二进制中1的个数
SQL Server forcibly disconnects
处理ORACLE死锁
[C topic] Li Kou 206. reverse the linked list