这篇文章主要介绍CSS实现放大缩小关闭按钮的方法,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:域名注册、网站空间、营销软件、网站建设、沙坪坝网站维护、网站推广。
这种效果最常见是在我们的浏览器页面上,先给大家展示效果图:
如上图所示,使用CSS 绘制上述三个按钮:
<template> <div class="windowAction"> <button class="min">缩小</button> <button class="fullpage">放大</button> <button class="close">关闭</button> </div> </template> <script> export default { data() { return { flag_fullpageWebView: 1 }; } }; </script> <style lang="scss" scoped> .windowAction { margin-top: -5px; -webkit-app-region: no-drag; min-width: 70px; text-align: right; button { &:hover { color: #a8aabd; } } .min { width: 14px; height: 14px; background-color: transparent; font-size: 0; margin-right: 18px; position: relative; color: #878896; &:after { content: ""; width: 100%; position: absolute; left: 0; bottom: 0; border-bottom: 2px solid; } } .fullpage { width: 16px; height: 16px; color: #878896; border: 2px solid; background-color: transparent; font-size: 0; margin-right: 18px; } .close { width: 18px; height: 18px; font-size: 0; background-color: transparent; position: relative; color: #878896; transform: rotate(45deg) translate(-2px, 2px); &:before, &:after { content: ""; position: absolute; } &:before { width: 100%; left: 0; top: 50%; transform: translateY(-50%); border-top: 2px solid; } &:after { height: 100%; left: 50%; top: 0; transform: translateX(-50%); border-left: 2px solid; } } } </style>
以上是“CSS实现放大缩小关闭按钮的方法”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!
网页名称:CSS实现放大缩小关闭按钮的方法
网站链接:https://www.cdcxhl.com/article4/pihcie.html
成都网站建设公司_创新互联,为您提供虚拟主机、自适应网站、手机网站建设、响应式网站、App开发、商城网站
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联