css实现简洁清爽联系我们表单效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现简洁清爽联系我们表单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/fontawesome-kit.js"></script> <style> @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; } body, input, textarea { font-family: "Poppins", sans-serif; } .container { position: relative; width: 100%; min-height: 100vh; padding: 2rem; background-color: #fafafa; overflow: hidden; display: flex; align-items: center; justify-content: center; } .form { width: 100%; max-width: 820px; background-color: #fff; border-radius: 10px; box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1); z-index: 1000; overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); } .contact-form { background-color: #1abc9c; position: relative; } .circle { border-radius: 50%; background: linear-gradient(135deg, transparent 20%, #149279); position: absolute; } .circle.one { width: 130px; height: 130px; top: 130px; right: -40px; } .circle.two { width: 80px; height: 80px; top: 10px; right: 30px; } .contact-form:before { content: ""; position: absolute; width: 26px; height: 26px; background-color: #1abc9c; transform: rotate(45deg); top: 50px; left: -13px; } form { padding: 2.3rem 2.2rem; z-index: 10; overflow: hidden; position: relative; } .title { color: #fff; font-weight: 500; font-size: 1.5rem; line-height: 1; margin-bottom: 0.7rem; } .input-container { position: relative; margin:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0