当前位置:网站首页>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);
}
边栏推荐
猜你喜欢

MySQL之事务与MVCC

Single or multiple human posture estimation using openpose

Leo-sam: tightly coupled laser inertial odometer with smoothing and mapping

记一次Spark foreachPartition导致OOM

树莓派入门:树莓派的初始设置

防抖(debounce)和节流(throttle)

ice 100G 网卡分片报文 hash 问题

What is the Internet of things

Add the jar package under lib directory to the project in idea

System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏
随机推荐
Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection
oracle_12505错误解决方法
继承的实现过程及ES5和ES6实现的区别
Visual Studio 2022 查看类关系图
Recommend 10 learning websites that can be called artifact
Gbdt source code analysis of boosting
Meanshift clustering-01 principle analysis
How to realize a correct double check locking
pkg_ Resources dynamic loading plug-in
Content type corresponding to office file
Fast-lio: fast and robust laser inertial odometer based on tightly coupled IEKF
Spark002 --- spark task submission, pass JSON as a parameter
Use the command to check the WiFi connection password under win10 system
Debounce and throttle
Scala111-map、flatten、flatMap
args参数解析
spark中saveAsTextFile如何最终生成一个文件
深入:微任务与宏任务
Bridge NF call ip6tables is an unknown key exception handling
MySql的安装配置超详细教程与简单的建库建表方法