鍍金池/ 問答/ HTML問答
陌顏 回答

項(xiàng)目地址,是這個吧?
跑了一下,你把img樣式上那個height:100%;直接刪掉就行了……

青瓷 回答

HTML ASCII

了解一下,查看源碼的時候就會發(fā)現(xiàn)數(shù)字用了 & #xf37c;& #xecb1;& #xf3eb;.& #xedbd;& #xf3eb;代替,并不是字體圖片。

巫婆 回答

webpack 里面的是在編譯期給你報錯用的,報錯了會停止編譯,直到你修復(fù)。

vscode中的是提示給你看的,方便你直接看到錯誤。順便會幫你修復(fù)簡單的錯誤。

沖突是會有的,不過都是可配置的,不會配置的話就先去拿一份別人配置好的來用

笑浮塵 回答

原生js直接寫是需要帶on前綴的。onkeydown、onclick

如果是addEventListener的就不需要on前綴

document.body.onkeydown = function(){
   if (event.keyCode == "13") {//keyCode=13是回車鍵
       document.getElementById('btnSumit').onclick();
   }
}

------

document.body.addEventListener("keydown",function(){
   if (event.keyCode == "13") {//keyCode=13是回車鍵
       document.getElementById('btnSumit').onclick();
   }
},false)
久舊酒 回答

你是要再循環(huán)渲染el-switch么? 如果是,確保up.value是對象或者是數(shù)組再次v-for就好。參考一下

<ul class="HRcertifyUl_out" v-for="(item,index) in certifyList" :key="index">
      <li class="HRcertifyLi_out" v-for="(itemL2,indexL2) in item.innerList2" :class="{active:itemL2.active}" :key="indexL2">
        <div class="HRoutTopArea" @click="listOutClick(item,itemL2)">
          <div class="HRoutBorderDiv">
            <div class="HRoutIcon">
              <Icon :type="itemL2.leftIcon" size="48"></Icon>
            </div>
            <div class="HRoutText">
              <p class="cnText">{{itemL2.tittle}}</p>
            </div>
            <div class="HRoutArrowIcon">
              <Icon :type="itemL2.active?itemL2.rightIconActive:itemL2.rightIcon"></Icon>
            </div>
          </div>
        </div>
        <div class="HRoutBottomArea">
          <ul class="HRcertifyUl_in">
            <li 
              class="HRcertifyLi_in" 
              :class="{active:itemL3.active}" 
              v-for="(itemL3,indexL3) in itemL2.list3" 
              :key="indexL3" 
              v-touch-ripple 
              @click="listInClick(itemL3,indexL3);">
              {{itemL3.name}}
            </li>
          </ul>
        </div>
      </li>
    </ul>
怣痛 回答

你這個時間范圍rules使用的什么表單驗(yàn)證插件啊?求教~~

嫑吢丕 回答

不知道是不是生命周期的問題,
把mounted中的方法放到了updated中就能夠調(diào)用了

硬扛 回答

1.promise化

function util() {
  return new Promise((resolve, reject) => {
    let reader = new FileReader()
    reader.onload = function (e) {
      let data = e.target.result
      let img = new Image()
      img.src = data
      img.onload = function () {
        resovle({
          width: img.width,
          height: img.height
        })
        console.log('width', img.width)
        console.log('height', img.height)
      }
    }
    reader.readAsDataURL(file)
  })
}

2.調(diào)用

async function getImg() {
  let img = await util()
  console.log('width', img.width)
  console.log('height', img.height)
}
病癮 回答

mozilla的文檔這樣寫

When both top and bottom are specified, as long as height is
unspecified, auto, or 100%, both top and bottom distances will be
respected. Otherwise, if height is constrained in any way, the top
property takes precedence and the bottom property is ignored.

也就是,你的后一種寫法可能導(dǎo)致div的大小拉大為全屏,如果div大小已經(jīng)被限制住,right和bottom會被忽略。

萢萢糖 回答

git log 看一下日志
然后git reset --hard 日志

乖乖瀦 回答

開發(fā)者工具的模擬不一定是百分之百正確的

疚幼 回答
  1. .header的position,下劃線的定位基準(zhǔn)就是body了,其實(shí)不是不顯示,而是顯示到底部去了
  2. 把.header的position換成absolute,.header變?yōu)閮?nèi)容的寬+padding的寬,下劃線就是他們的寬度
  3. 把.header:after中的position去掉,那么就是文本塊了,設(shè)置的top,left,height都不起作用了,就是一個空白
我甘愿 回答

還是不用要用'a'吧, 生成key值也麻煩, 用map, 索引做key

var newArr = [1,2,3].map(function(v, idx){
    var obj = {};
    obj[idx] = v;
    return obj;
});
近義詞 回答

用css定位不行嗎

艷骨 回答

//這里設(shè)置

app.get('/getDiscList', function (req, res) {...})

//apiRoutes 改成app試試