css实现立体按钮按下效果
代码语言:html
所属分类:表单美化
代码描述:css实现立体按钮按下效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap"); *, *::before, *::after { box-sizing: border-box; } body { background: #F5EFE1; margin: 0; } .container { display: grid; place-items: center; height: 100vh; } .btn, .myButton, .myButton::before { border: 1px solid #e2d0a8; border-radius: 8px; cursor: pointer; min-width: 200px; min-height: 60px; } .myButton { background: #efe5ce; color: #7b6229; font-family: 'Cormorant Garamond.........完整代码请登录后点击上方下载按钮下载查看
网友评论0