微信小程序 > 微信公开课 > justify-content对view下lt;inputgt;lt;buttongt;不起作用
微信小程序,微信公开课,justify-content对view下lt;inputgt;lt;buttongt;不起作用

justify-content对view下lt;inputgt;lt;buttongt;不起作用

2019-03-15 16:54:37

微信公开课小程序热门讨论关于「justify-content对view下lt;inputgt;lt;buttongt;不起作用」的小程序开发问题
补充:justifycontent对view下inputbutton不起作用,在view里设置了justifycontent:spacearound对view下面的inputbu
展开:问题模块框架类型问题类型终端类型微信版本基础库版本框架小程序需求客户端6671321225在<view里设置了justifycontent:spacearound对<view下面的<input<button不起作用<!输入框<viewclass=postinputcontainer<inputtype=textplaceholder=输入内容class=postinput<buttonclass=postsendbtn发送<button<viewpostinputcontainer{position:fixed;bottom:0;width:100%;height:100rpx;display:flex;flexdirection:row;justifycontent:spacearound;alignitems:center;backgroundcolor:chartreuse;}postinputcontainerpostinput{width:50%;height:80rpx;backgroundcolor:beige;}postinputcontainerpostsendbtn{width:30%;height:80rpx;backgroundcolor:bisque;}代码片段https:developersweixinqqcomsUudJjqme7g3T即速小程序:margin:0rpx;:button组件里自带了marginleft和marginright导致的这种情况,你可以在button样式里加上margin:0;就好了:非常感谢又学到了个解决问题的思路:建议代码修改,将input和button用view标签包裹,去掉input和button的宽度限制:感谢回答问题已解决
更多有关「justify-content对view下lt;inputgt;lt;buttongt;不起作用」的讨论可以前往微信公开课小程序参与互动哦!
标签:微信公开课,小程序
微信小程序,微信公开课,justify-content对view下lt;inputgt;lt;buttongt;不起作用

「justify-content对view下lt;inputgt;lt;buttongt;不起作用」热门讨论订阅

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「justify-content对view下lt;inputgt;lt;buttongt;不起作用」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「justify-content对view下lt;inputgt;lt;buttongt;不起作用」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「justify-content对view下lt;inputgt;lt;buttongt;不起作用」

微信公开课小程序热门讨论「justify-content对view下lt;inputgt;lt;buttongt;不起作用」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「justify-content对view下lt;inputgt;lt;buttongt;不起作用」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。