在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ HTML5問答
朕略傻 回答

圖片描述

你好,我的思路如下,有不清楚的歡迎交流。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    .box{
        width: 100px;
        height: 30px;
        line-height: 30px;
        border: 1px solid #ccc;
        text-align: center;
        font-size: 14px;
        position: relative;
    }
    .box:after{
        content: "";
        height: 1px;
        width: 100%;
        background-color: #fff;
        position: absolute;
        bottom: -1px;
        left: 0;
        display: none;
    }
    .con{
        height: 100px;
        width: 300px;
        border: 1px solid #ccc;
        display: none;
        position: absolute;
        left: -1px;
    }
    .box:hover:after{
        display: block;
    }
    .box:hover .con{
        display: block;
    }
    </style>
</head>
<body>
    <div class="box">
        <span>我的購物車</span>
        <div class="con">
            購物車的內容
        </div>
    </div>
</body>
</html>
紓惘 回答

echarts配置項,yAxis,show

紓惘 回答

用函數計算,將type傳遞過去,返回計算出來的icon


補充:

你的報錯原因主要是這個地方

<img slot="icon" v-if="file.fileType ==='folder'" style="width:30px;height:30px" src="../../assets/folder.png"/>
<i class="iconfont icon-arrow-right-copy-copy"></i>
<img slot="icon" v-else-if="file.fileType ==='xls'" style="width:30px;height:30px" src="../../assets/excel.png"/>

這個i標簽緊跟在v-ifimg標簽的后面,使得v-if的模板解析的時候認為已經結束了,所以會提示你v-else-if必須緊跟在v-if后面。

你可以嘗試用

<template v-if="file.fileType ==='folder'">
<img slot="icon"  style="width:30px;height:30px" src="../../assets/folder.png"/>
<i class="iconfont icon-arrow-right-copy-copy"></i>
</template>

替代原來的那個v-if的部分。

我上面提的主要是通過其他的方法,比如你可以單獨用一個method計算出src和icon,然后只需要一個標簽就可以表示出所有的圖片了。
當然,用內聯的代碼計算出的src比較麻煩,可能需要先import對應的圖片,或者計算出class,圖片用background-image來引入就行了

膽怯 回答

這個如果按照圖片上的效果把陰影也加上,不好實現,也沒必要(如果這么復雜,直接要美工出圖)

不加陰影的

<div class="test"></div>

.test{
    width: 800px;
    height: 200px;
    position: relative;
    background: linear-gradient(red 5%, blue 5%, blue 95%,red 95%);
    overflow: hidden;
    margin: 10px;
}
/*
 * 大圓
 留四分之一圓,90度,那么寬高為(父元素高度-20)的根2倍
 top為10 - ((父元素高度-20)的根2倍 - (父元素高度-20))/2
 left沒想公式,慢慢調的
 * */
.test:after{
    content: '';
    width: 254.55844122715712px;
    height: 254.55844122715712px;
    border-radius: 50%;
    background: red;
    position: absolute;
    top:-27.27922061357856px;
    left:-217px;
    z-index: 1;
}
/*
 小圓
 * */
.test:before{
    content: '';
    width: 254.55844122715712px;
    height: 254.55844122715712px;
    border-radius: 50%;
    background: blue;
    position: absolute;
    top:-27.27922061357856px;
    left:-227px;
    z-index: 2;
}
玄鳥 回答

js獲取展示框寬度,動態(tài)給每個圖片加
translateX(展示框寬度*(n-1))
(n就是第幾張圖片進入展示區(qū))。
然后動態(tài)改變n。你看行不。

歆久 回答

你應該在這個函數外面把所有的組件都引入進來,組成一個對象,類似:

import TaxRateConfig from xxxx

let map = {
    TaxRateConfig
}

render={props => <map[route.Component] {...props} />} //這里一個都渲染不出來
九年囚 回答

不會canvas。
個數不固定,參數改成數組不就好了

arr = [
  {
    id:'111',
    info: ''
  },
  {
    id:'222',
    info: ''// 不需要提示就不寫
  },
  ...
]
function highLight (arr) {
  $('#overlay').show();
  arr.forEach(function (item) {
    id = item.divId
    info = item.info
    // 然后做你原來的操作
  }) 
}
嫑吢丕 回答

需要的數據類型是ListViewDataSource,而不是array

忘了我 回答

你這個應該只是把頁面元素顯示出來了,但是這些元素的對應的數據,事件都不見了。自然也就不能點了,可以把vueData,vuex數據也一起保存起來,重新賦值試試

苦妄 回答

不卸載小程序的話,下一次點擊不會彈出,可以使用wx.openSetting來設置

維他命 回答

//點擊確定按鈕的時候
addPermission:function(){

var that = this;
that.$validator.validateAll().then((result) => {
    //如果表單不為空
    if(result){
        var finalPath = that.new_path1 + ":" + that.new_path2;
        console.log(finalPath); //為什么是underfine
    }
})

}

愛礙唉 回答

一個布爾值來控制他是否可編輯就行了

厭惡我 回答

table不是綁定一個data嗎,通常來說修改data,table就會自己重新渲染。同理,你在初始化的時候,讓data = [],然后點擊添加的時候push一個初始化的對象進去,例如push一個{name:'1',age:0}

呆萌傻 回答

手機端要調用攝像頭要https才行

愛礙唉 回答

通過分析換了一種方法解決

利用BootstrapTable這個onClickRow事件函數 然后在單獨調用google map的api

產生點擊循環(huán)列表在map中展現圖片信息

修復bug $element[0].addEventListener('click',fm);

  function BootstrapTable() {
        $.ajax({
            "type": "get",
            "url": imgJson,
            "async": false,
            "success": function (data) {
                window.res = data.data;
                //console.log(data.data);
                $('#table').bootstrapTable({
                    data: data.data,
                    pagination: true,
                    searchAlign: "right",
                    buttonsAlign: "left",
                    showRefresh: true,
                    searchOnEnterKey: false,
                    singleSelect: true,
                    maintainSelected: false,
                    search: true,
                    pageSize: 10,
                    sortable: false,
                    paginationLoop: true,
                    toolbar: '#toolbar',        // 工具欄ID
                    toolbarAlign: 'right',        // 工具欄對齊方式
                     onClickRow: function (item, $element) {
                        var arr = {};
                        arr.Latitude = parseFloat(item.Latitude);
                        arr.Longitude = parseFloat(item.Longitude);
                        var latLng = new google.maps.LatLng(arr.Latitude, arr.Longitude);
                        var fm = mapLine.markerClickFunction(item, latLng);
                        $element[0].addEventListener('click',fm);
                    },
              
                    columns: [
                        {
                            field: 'id',
                            align: 'center',
                            title: 'id'
                        },
                        {
                            field: 'photo_title',
                            align: 'center',
                            title: 'photo_title'
                        },
                        {
                            field: 'photo_time',
                            align: 'center',
                            title: 'photo_time'
                        }
                    ]

                });
            }
        });
    };
青瓷 回答

bind對象進去就行了
setInterval(test.all.bind(test),1000);

假灑脫 回答

<input #fileSelect style="display:none" type="file" ng2FileSelect [uploader]="uploader" (change)="selectedFileOnChanged($event)" />

定義你的樣式節(jié)點
<span (click)="fileSelect.click()">定義你的樣式<span>