当前位置:网站首页>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);
}
边栏推荐
- vscode 插件篇收集
- Automatically set the template for VS2010 and add header comments
- LeetCode_ Factorization_ Simple_ 263. Ugly number
- Nacos2.1.0 cluster construction
- My creation anniversary
- spark中saveAsTextFile如何最终生成一个文件
- Log4j2 basic configuration
- 安装EntityFramework方法
- 解决DBeaver SQL Client 连接phoenix查询超时
- Handle Oracle deadlock
猜你喜欢
随机推荐
Handle Oracle deadlock
mysql heap表_MySQL内存表heap使用总结-九五小庞
Install entityframework method
Hbck 修复问题
outline和box-shadow实现外轮廓圆角高光效果
node学习
Cmake specify opencv version
LeetCode第 303 场周赛
Implement a simple restful API server
树莓派入门:树莓派的初始设置
Scala110-combineByKey
Leetcode combination sum + pruning
Copy files / folders through Robocopy
MeanShift聚类-01原理分析
Vs2010添加wap移动窗体模板
打开虚拟机时出现VMware Workstation 未能启动 VMware Authorization Service
记一次Spark报错:Failed to allocate a page (67108864 bytes), try again.
用setTimeout模拟setInterval定时器
Application of object detection based on OpenCV and yolov3
瀑布流布局








