<view class= "search-l fl" id= "channel" > <image src= "../images/channel.png" ></image> <text>频道</text> </view> <view class= "search-r fr" > <input id= "search_value" type= "text" placeholder= "请输入" ></input> </view> |
例如上面fl fr
就是自定义的class而已
一般是 左浮动和右浮动 的缩写 float left / float right
谢谢