小程序
小游戏
企业微信
微信支付
扫描小程序码分享
样式文件中没有找到相关的设置啊,谢谢!
4 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
/* 1像素边线 */
.line-w-
top
, .line-w-
bottom
, .line-h-
left
right
{
position
:
relative
;
}
::after, .line-w-
::after {
absolute
content
""
width
100%
height
2
rpx;
background
#ccc
transform-origin:
50%
transform: scaleY(
0.5
);
0
.line-h-
::after, .line-h-
transform: scaleX(
用法是直接加class
<
view
class
=
'line-w-bottem'
></
>
这种方式的好处在于Android和IOS的显示效果都是一致的,可以解决在Android上无法解析0.5px的问题
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
这个样式
原来如此,找到了,非常感谢
borderBottom
div ,,,,height:1px
用:after{ xxxx };
已经找到了,谢谢
代码放出来啊
当前页面的代码吗?这是官网给的demo
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
/* 1像素边线 */.line-w-top, .line-w-bottom, .line-h-left, .line-h-right{position:relative;}.line-w-top::after, .line-w-bottom::after {position:absolute;content:"";width:100%;height:2rpx;background:#ccc;transform-origin:50%100%;transform: scaleY(0.5);}.line-w-top::after {top:0;left:0;}.line-w-bottom::after {bottom:0;left:0;}.line-h-left::after, .line-h-right::after {position:absolute;content:"";width:2rpx;height:100%;background:#ccc;transform-origin:100%50%;transform: scaleX(0.5);}.line-h-left::after {top:0;left:0;}.line-h-right::after {top:0;right:0;}用法是直接加class
<viewclass='line-w-bottem'></view>这种方式的好处在于Android和IOS的显示效果都是一致的,可以解决在Android上无法解析0.5px的问题
原来如此,找到了,非常感谢
borderBottom
div ,,,,height:1px
用:after{ xxxx };
已经找到了,谢谢
代码放出来啊
当前页面的代码吗?这是官网给的demo