扫描小程序码分享
求助,如题想通过slider调节图片参数,不知道如何调(小白找不到相关参数无法直接调),因此想用障眼法,也就是自己在外部调节好图片参数,存为多张图,然后通过控制slider来显示不同图片,但是没有成功;又尝试将调节好参数的多张图重叠放置,调节相应层下的图片透明度来显示底层的图片,也没成功...呃,不知道怎么办了
想实现如图的调节,该怎么做呢;提供一下思路也行,先谢过~
(也许功能看起来没什么意义,但其实是一个些许实验性质的小程序课业,求助)
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
/* 图片显示部分 */ <view class="dynamic-get-img"> <block wx:if="{{cameraname=='sonycamera'}}"> <block wx:if="{{hidden1}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_50.jpg"></image> </block> <block wx:if="{{hidden2}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_100.jpg"></image> </block> <block wx:if="{{hidden3}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_6400.jpg"></image> </block> </block> </view> /* 滚动条部分 */ <block wx:if="{{cameraname=='sonycamera'}}"> <view class="box"> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 焦  距</text> <view class="body-view"> <slider bindchange="slider_focalD_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 感光度</text> <view class="body-view"> <slider bindchange="slider_ISO_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 色  温</text> <view class="body-view"> <slider bindchange="slider_colorT_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> </view> </block>
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
css的效果处理和你列的这三个不能完全对应上
https://developer.mozilla.org/zh-CN/docs/Web/CSS/filter
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
/* 图片显示部分 */ <view class="dynamic-get-img"> <block wx:if="{{cameraname=='sonycamera'}}"> <block wx:if="{{hidden1}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_50.jpg"></image> </block> <block wx:if="{{hidden2}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_100.jpg"></image> </block> <block wx:if="{{hidden3}}"> <image class="img" mode="widthFix" src="cloud://cloud1-2g5owshf7c7c0c47.636c-cloud1-2g5owshf7c7c0c47-1306322446/sony/ISO_6400.jpg"></image> </block> </block> </view> /* 滚动条部分 */ <block wx:if="{{cameraname=='sonycamera'}}"> <view class="box"> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 焦  距</text> <view class="body-view"> <slider bindchange="slider_focalD_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 感光度</text> <view class="body-view"> <slider bindchange="slider_ISO_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> <view class="monitor"> <text class="monitor-title" decode="{{true}}" space="{{true}}"> 色  温</text> <view class="body-view"> <slider bindchange="slider_colorT_change" show-value min="1" max="3" step="1" backgroundColor="blue" block-color="white" activeColor="red"/> </view> </view> </view> </block>
css的效果处理和你列的这三个不能完全对应上
https://developer.mozilla.org/zh-CN/docs/Web/CSS/filter