国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

解決:Some selectors are not allowed in component wxss, including tag name selectors, ID selectors

這篇具有很好參考價(jià)值的文章主要介紹了解決:Some selectors are not allowed in component wxss, including tag name selectors, ID selectors。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

在微信開(kāi)發(fā)工具中運(yùn)行文檔中的代碼,出現(xiàn)如下錯(cuò)誤:

?[渲染層錯(cuò)誤] Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./custom-tab-bar/index.wxss:36:15)(env: Windows,mp,1.06.2210310; lib: 2.5.0)

出現(xiàn)原因:隨著小程序的發(fā)展,文檔中原來(lái)的寫(xiě)法已經(jīng)不受支持。官方文檔也建議不再使用某些tag而換成新的寫(xiě)法。

解決方法:

第一步,把wxml文件里面要使用wxss的element都賦予一個(gè)類(lèi)名

<cover-image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></cover-image>

改成

<cover-image class="tab-bar-item-image" src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></cover-image>

?第二步,打開(kāi)相應(yīng)wxss文件,把里面的這種寫(xiě)法“.tab-bar-item?cover-image”改成類(lèi)名““.tab-bar-item-image””

如此這般把所有要用到wxss里面條目的element都改了。

第三步,把wxml文件中過(guò)時(shí)的“cover-view”和“cover-image”全部改成“view”和“image”。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-518805.html

到了這里,關(guān)于解決:Some selectors are not allowed in component wxss, including tag name selectors, ID selectors的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • ES刪除索引問(wèn)題 【W(wǎng)ildcard expressions or all indices are not allowed】

    ES 執(zhí)行操作 DELETE /dmtv_20230415* 出現(xiàn)一下問(wèn)題 問(wèn)題解決: Elasticsearch文檔說(shuō): 刪除索引 API 也可以應(yīng)用于多個(gè)索引,方法是使用逗號(hào)分隔列表,或者使用 _all 或 *as 索引應(yīng)用于所有索引(小心?。?為了禁用允許通過(guò)通配符或 _all 刪除索引,請(qǐng)將配置中的 action.destructive_require

    2024年02月05日
    瀏覽(50)
  • 關(guān)于微信小程序警告“Do not have handler in component: pages/xxx/xxx. “的解決方法

    關(guān)于微信小程序警告“Do not have handler in component: pages/xxx/xxx. “的解決方法

    ??文章目錄 ??關(guān)于警告 ??簡(jiǎn)單翻譯一下 ??出現(xiàn)原因 ??解決方法 ??測(cè)試代碼 Do not have ?handler in component: pages/register/register.? Please make sure that ?handler has been defined in pages/register/register. 使用model:value=\\\"{{xxx}}\\\",對(duì)表單進(jìn)行數(shù)據(jù)的雙向綁定,綁定后,在表單輸入信息是彈出警

    2024年02月11日
    瀏覽(17)
  • 【已解決】TypeError: _ctx.$t is not a function when using $t in child component

    【已解決】TypeError: _ctx.$t is not a function when using $t in child component

    項(xiàng)目使用的工具及版本 ? ? \\\"vue\\\": \\\"^3.2.13\\\", ? ? \\\"vue-i18n\\\": \\\"^9.2.2\\\", 問(wèn)題背景:前幾天在做一個(gè)登錄的小demo,然后因?yàn)闆](méi)有怎么理解代碼就跟著敲,然后運(yùn)行的時(shí)候?yàn)g覽器控制臺(tái)就報(bào)錯(cuò):TypeError:_ctx.$t is not a function when using $t in child component,如下圖: ?然后我就百度了一下i18n是什

    2024年02月16日
    瀏覽(24)
  • 解決:nginx: [emerg] “upstream“ directive is not allowed here in /usr/local/nginx/conf/nginx.conf:2

    解決:nginx: [emerg] “upstream“ directive is not allowed here in /usr/local/nginx/conf/nginx.conf:2

    1.nginx集群報(bào)錯(cuò)“upstream”directive is not allow here 錯(cuò)誤如下圖。 ?2.啟動(dòng)nginx報(bào)錯(cuò),這里的原因是改了配置文件upstream存的的位置不對(duì)所以導(dǎo)致報(bào)錯(cuò)的, ?3.把upstream 放入http里面保存重啟nginx就解決了 如圖成功解決報(bào)錯(cuò),啟動(dòng)成功了 ?

    2024年02月15日
    瀏覽(23)
  • HbuilderX運(yùn)行打包項(xiàng)目時(shí)報(bào)node.exe: --openssl-legacy-provider is not allowed in NODE_OPTIONS的解決辦法

    HbuilderX運(yùn)行打包項(xiàng)目時(shí)報(bào)node.exe: --openssl-legacy-provider is not allowed in NODE_OPTIONS的解決辦法

    這兩天在用HbuilderX 打包項(xiàng)目時(shí)一直報(bào) 一直以為是版本的問(wèn)題,把hbuilderx更換到 最新的正式版v3.6.4 此問(wèn)題照常存在 更新到v3.6.7 ALPHA版本也照常存在此錯(cuò)誤 最后把hbuilderx換成歷史的版本同樣存在此問(wèn)題 后來(lái)記得原來(lái)在系統(tǒng)環(huán)境變量配置中經(jīng)加過(guò),系統(tǒng)環(huán)境變量 但現(xiàn)在已經(jīng)刪除

    2024年02月07日
    瀏覽(16)
  • Git問(wèn)題:出現(xiàn)報(bào)錯(cuò)-You are not allowed to push code to protected branches on this project

    Git問(wèn)題:出現(xiàn)報(bào)錯(cuò)-You are not allowed to push code to protected branches on this project

    Git問(wèn)題:出現(xiàn)報(bào)錯(cuò)-You are not allowed to push code to protected branches on this project 最近不是在做數(shù)據(jù)安全分類(lèi)分級(jí)的項(xiàng)目嗎,所以在公司的gitLab上新創(chuàng)建了一個(gè) 空白項(xiàng)目 ,但是在本地創(chuàng)建分支后提交到遠(yuǎn)程時(shí)出來(lái)問(wèn)題。 執(zhí)行提交 git push 的時(shí)候, 提示如下圖 然后跟隨提示執(zhí)行了下面

    2024年02月02日
    瀏覽(19)
  • git push錯(cuò)誤:You are not allowed to force push code to a protected branch on this project

    git push錯(cuò)誤:You are not allowed to force push code to a protected branch on this project

    ? ? ? ? 本地使用?git push --force origin 命令強(qiáng)制推送時(shí),出現(xiàn) “You are not allowed to force push code to a protected branch on this project”錯(cuò)誤,意為該分支為受保護(hù)的,不允許這類(lèi)操作,可以通過(guò)git管理后臺(tái)關(guān)閉該項(xiàng)目分支的保護(hù)狀態(tài)處理。 使用管理員賬號(hào)進(jìn)入git中的項(xiàng)目設(shè)計(jì),setting

    2024年02月11日
    瀏覽(27)
  • 無(wú)法連接倉(cāng)庫(kù):Command “git ls-remote -h xxx stderr: remote: You are not allowed to download code from

    無(wú)法連接倉(cāng)庫(kù):Command “git ls-remote -h xxx stderr: remote: You are not allowed to download code from

    自己jenkins打包的時(shí)候,突然在設(shè)置里面報(bào)以下錯(cuò)誤: 無(wú)法連接倉(cāng)庫(kù):Command \\\"git ls-remote -h -- http://gitlab.rd.unicloud.com/unicloud/pco/uco-ui-delivery-console.git HEAD\\\" returned status code 128: stdout: stderr: remote: You are not allowed to download code from this project. fatal: unable to access \\\'http://gitlab.rd.unicloud.com/u

    2024年02月12日
    瀏覽(16)
  • IDEA使用Git提交代碼remote: GitLab: You are not allowed to push code to protected branches on this project

    創(chuàng)建了一個(gè)新項(xiàng)目,提交到GitLab上的master分支時(shí),報(bào)錯(cuò)如下: 剛開(kāi)始以為自己的賬號(hào)沒(méi)權(quán)限提交代碼,然后打開(kāi) .gitconfig文件?查看自己 git的用戶(hù)名和email是否正確,發(fā)現(xiàn)正確無(wú)誤 或者打開(kāi)終端,查看git用戶(hù)名和郵箱地址命令: 如果不相符,在桌面打開(kāi)git終端,輸入以下命令

    2024年02月10日
    瀏覽(14)
  • Objects are trying to be loaded during a domain backup. This is not allowed as it will lead to undef

    Objects are trying to be loaded during a domain backup. This is not allowed as it will lead to undef

    ?UNITY運(yùn)行時(shí)報(bào)錯(cuò)Objects are trying to be loaded during a domain backup. This is not allowed as it will lead to undefined behaviour! 解決方法是關(guān)閉在編輯器中打開(kāi)的SHADER GRAPH窗口 ?

    2024年02月12日
    瀏覽(23)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包