div+css布局实现流血的插头插座效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现流血的插头插座效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ margin: 0px; background: rgb(247,237,215); } .container{ position: relative; max-width: 600px; width: 100%; margin: 0px auto; display: flex; align-items: center; justify-content: center; min-height: 100vh; } .inner_container{ position: relative; width: 400px; height: 200px; display: flex; align-items: center; justify-content: center; } .bandage{ position: relative; width: 250px; height: 67px; background: rgb(222,193,162); border-radius: 32px; display: flex; align-items: center; justify-content: center; } .inner_bandage{ position: relative; width: 100px; height: 45px; background: rgb(229,204,178); border-radius: 14px; box-shadow: 0px 0px 4px #0000007a; } .eye{ position: absolute; width: 10px; height: 10px; background: rgb(109,85,61); border-radius: 50%; top: 11px; } .e1{ left: 23px; } .e2{ left: 66px; } .mouth{ position: absolute; width: 31px; height: 4px; background: rgb(109,85,61); border-radius: 50%; top: 26px; left: 35px; } .mouth::after{ position: absolute; content: ""; width: 3px; height: 12px; background: rgb(162,74,72); border-radius: 12px; left: 2px; top: 1px; } .teeth::after,.teeth::before{ position: absolute; content: ""; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 7px solid #fff; transform: rotate(180deg); left: 4px; top: 1px; } .teeth::before{ left: unset; right: 3px; } .blood{ position: absolute; width: 71px;.........完整代码请登录后点击上方下载按钮下载查看
网友评论0