联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
我问下多选项或者单选项为图片的表单如何制作
类型:POSCMS 更新时间:2017-09-01 20:26:29

我问下多选项或者单选项为图片的表单如何制作?




回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2017-09-01 20:25:31
    0
    界面html发来看看
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2017-09-01 20:25:58
    0
    先把界面做好,然后替换表单的值,后台不存图片只存值,前台显示值就行了
  • 迅睿粉丝
    #3楼    迅睿粉丝
    2017-09-01 20:25:58
    0
    这个多简单啊 <input type="checkbox" value="840" name="custom_192" id="custom_192_840"> 改成 你的name值和后台的value就行了,对了,name要改成name="data[字段名字]"
    满意答案
  • 迅睿粉丝
    #4楼    迅睿粉丝
    2017-09-01 20:25:58
    0
    感谢大家给我解决此问题,我已经完美的解决
  • 迅睿粉丝
    #5楼    迅睿粉丝
    2017-09-01 20:26:11
    0
    界面做好了,如何让前端的值和自定义上传的图片对应上呢,图片可能会更换,
  • 迅睿粉丝
    #6楼    迅睿粉丝
    2017-09-01 20:26:15
    0
    <div class="content font_list">

    <p class="content">选择您想要的风格<em>*</em></p>

    <div class="content font_img">

    <div class="font_imgradio content">

    <label class="content" for="custom_192_840"><img src="../../uploads/img/857/1608/1472119553_72639.jpg" alt="">文艺清新</label>

    <input type="checkbox" value="840" name="custom_192" id="custom_192_840">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio fr content">

    <label class="content" for="custom_192_839"><img src="../../assets/img/other/3991461223695_58426.jpg" alt="">时尚杂志</label>

    <input type="checkbox" value="839" name="custom_192" id="custom_192_839">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio content">

    <label class="content" for="custom_192_838"><img src="../../uploads/img/857/1608/1472119666_54310.jpg" alt="">耍酷萌宝</label>

    <input type="checkbox" value="838" name="custom_192" id="custom_192_838">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio fr content">

    <label class="content" for="custom_192_837"><img src="../../uploads/img/857/1608/1472119863_85522.jpg" alt="">甜蜜天使</label>

    <input type="checkbox" value="837" name="custom_192" id="custom_192_837">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio content">

    <label class="content" for="custom_192_836"><img src="../../uploads/img/857/1608/1472119466_56028.jpg" alt="">大牌风范</label>

    <input type="checkbox" value="836" name="custom_192" id="custom_192_836">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio fr content">

    <label class="content" for="custom_192_835"><img src="../../uploads/img/857/1608/1472119785_99924.jpg" alt="">夏季森系</label>

    <input type="checkbox" value="835" name="custom_192" id="custom_192_835">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio content">

    <label class="content" for="custom_192_834"><img src="../../uploads/img/857/1608/1472119363_68015.jpg" alt="">韩式清新</label>

    <input type="checkbox" value="834" name="custom_192" id="custom_192_834">

    <i class="selected-icon"></i>

    </div>

    <div class="font_imgradio fr content">

    <label class="content" for="custom_192_833"><img src="../../uploads/img/857/1608/1472119264_96960.jpg" alt="">活泼可爱</label>

    <input type="checkbox" value="833" name="custom_192" id="custom_192_833">

    <i class="selected-icon"></i>

    </div>

    </div>

    </div>