昵称也有唯一键
昵称也有唯一键
  • 发布:2021-03-31 17:43
  • 更新:2021-04-01 15:21
  • 阅读:419

为什么ViewStyles没有right属性, 想要nativeView停靠在屏幕右侧怎么做呢?

分类:HTML5+

5+文档
interface ViewStyles {
attribute String backgroundColor;
attribute String left;
attribute String top;
attribute String bottom;
attribute String height;
attribute String width;
attribute String dock;
attribute Number opacity;
attribute String position;
attribute ViewStatusbarStyles statusbar;
}
实测设置right确实不生效

2021-03-31 17:43 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

left = windowWidth - width 呢

  • 昵称也有唯一键 (作者)

    为什么?难道设width:10%, left就=windowWidth-width=90%了吗?

    不会的,元素依然停留在屏幕最左侧,占据屏幕10%的宽度而已

    2021-04-01 21:45

该问题目前已经被锁定, 无法添加新回复