相关属性
1.animation
animation的属性值非常多
2.box-shadow
box-shadow: h-shadow v-shadow blur spread color inset;
css3: 属性值–*水平阴影的位置,*垂直阴影的位置,模糊距离,阴影的大小,阴影的颜色,从外侧阴影改变内侧阴影`
四周阴影的示例:
3.box-sizing
box-sizing: content-box|border-box|inherit:
4.另一种写法:利用 outline:2px dashed black; 与 outline-offset:4px;
相关示例
没有截动图,但是描述地来讲就是红色边框闪烁的样子。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>css3动画闪烁框</title>
<style type="text/css