css实现上下左右箭头效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现上下左右箭头效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .btn-right{background:0;border:0;font-size:22px;line-height:2em;position:relative;width:8em;height:2em}.btn-right a{color:#fff;text-decoration:none;position:relative;z-index:10}.btn-right::before,.btn-right::after{background:#29c0d5;border-radius:2px;content:"";display:block;position:absolute;left:0;right:0;transition:all 1s;height:1em}.btn-right::before{box-shadow:-1px 1px 0 #1897c0,-2px 2px 0 #1897c0,-3px 3px 0 #1897c0,-4px 4px 0 #1897c0;transform:skew(45deg);top:0}.btn-right::after{box-shadow:1px 1px 0 #1897c0,2px 2px 0 #1897c0,3px 3px 0 #1897c0,4px 4px 0 #1897c0;transform:skew(-45deg);bottom:0}.btn-right:hover::before,.btn-right:hover::after{background:#68d3e2}.btn-right:focus{outline:0}.btn-right:focus::before,.btn-right:focus::after{background:#68d3e2}.btn-left{background:0;border:0;font-size:22px;line-height:2em;position:relative;width:8em;height:2em}.btn-left a{color:#fff;text-decoration:none;position:relative;z-index:10}.btn-left::before,.btn-left::after{background:#e4135d;border-radius:2px;content:"";display:block;position:absolute;left:0;right:0;transition:all 1s;height:1em}.btn-left::before{box-shadow:-1px 1px 0 #c81163,-2px 2px 0 #c81163,-3px 3px 0 #c81163,-4px 4px 0 #c81163;transform:skew(45deg);bottom:0;z-index:1}.btn-left::after{box-shadow:1px 1px 0 #c81163,2px 2px 0 #c81163,3px 3px 0 #c81163,4px 4px 0 #c81163;transform:skew(-45deg);top:0}.btn-left:hover::before,.btn-left:hover::after{background:#f1538b}.btn-left:focus{outline:0}.btn-left:focus::before,.btn-left:focus::after{background:#f1538b}.btn-up{background:0;border:0;font-size:22px;line-height:3em;position:relative;width:4em;height:3em;transform:rotate(-90deg)}.btn-up a{color:#fff;text-decoration:none;position:relative;z-index:10}.btn-up::before,.btn-up::after{background:#e4135d;border-radius:2px;content:"";display:block;position:absolute;left:0;right:0;transition:all 1s;height:1.5em}.btn-up::before{box-shadow:-1px 1px 0 #c81163,-2px 2px 0 #c81163,-3px 3px 0 #c81163,-4px 4px 0 #c81163;transfor.........完整代码请登录后点击上方下载按钮下载查看
网友评论0