div+css实现兔子胶囊开关效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现兔子胶囊开关效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> /* DAY STYLES*/ body{ background: #FFDB88; } .the-container{ display: block; position: absolute; width: 500px; height: 350px; margin: auto; top: 0; bottom: 0; left: 0; right: 0; } .c-window{ display: block; position: relative; width: 235px; height: 235px; margin: 0 auto; border-radius: 100%; border: 8px solid #E5B97A; background: #8188B8; box-shadow: 0px 0px 5px rgba(0,0,0,0.25) inset; overflow: hidden; } .c-window .the-sun{ display: block; position: relative; top: 18px; height: 40px; width: 40px; background: #F7B9A0; border-radius: 100%; margin: 0 auto; box-shadow: 0px 0px 40px #F7B9A0; left: 30px; } .c-window .the-moon{ position: relative; height: 24px; width: 24px; background: #8188B8; border-radius: 100%; box-shadow: 0px 0px 20px #FFF; display:none; } .c-window .the-rabbs{ display: block; position: absolute; bottom: -20px; height: 140px; w.........完整代码请登录后点击上方下载按钮下载查看
网友评论0