当前位置:网站首页>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);
}
边栏推荐
猜你喜欢
随机推荐
Simulate setinterval timer with setTimeout
"How to use" observer mode
Spark DF增加一列
System. Accessviolationexception: an attempt was made to read or write to protected memory. This usually indicates that other memory is corrupted
Deployment and simple use of PostgreSQL learning
Spark002---spark任务提交,传入json作为参数
Promise对象与宏任务、微任务
pkg_ Resources dynamic loading plug-in
pkg_resources动态加载插件
Client error: invalid param endpoint is blank
spark中saveAsTextFile如何最终生成一个文件
dpdk 收发包问题案例:使用不匹配的收发包函数触发的不收包问题定位
Process control (Part 1)
Implementation of redis distributed lock
Spark获取DataFrame中列的方式--col,$,column,apply
CMake指定OpenCV版本
ice 100G 网卡分片报文 hash 问题
node学习
《三子棋》C语言数组应用 --n皇后问题雏形
What is the Internet of things







