微信开放社区
服务商入驻
文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 提问 收藏 关注问题
  • 公众号1px问题

    retina 1px 利用box-shadow [代码]<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .div{ width: 400px; height: 400px; margin: 200px; margin-left: 500px ; box-shadow: inset 1px -1px 1px -1px #c8c7cc; } </style> </head> <body> <div class="div">111</div> </body> </html>> [代码] 利用 div+伪类+transform scale 单个边框 [代码].scale-1px{ position: relative; border:none; width: 300px; height: 300px; } .scale-1px:after{ content: ''; position: absolute; bottom: 0; background: #000; width: 100%; height: 1px; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); -webkit-transform-origin: 0 0; transform-origin: 0 0; } [代码] 四个边框 [代码].scale-all{ position: relative; overflow: hidden; height: 400px; width: 400px; border: none; } .scale-all:after{ content: ''; width: 200%; height: 200%; position: absolute; transform-origin: 0 0; border: 1px solid #000; transform: scale(0.5); left: 0; top: 0; } [代码] transform-origin: 0 0; 表示旋转轴,0 0 box 的左上角

    2021-08-15
    1收藏0评论499浏览
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.