zoukankan      html  css  js  c++  java
  • 微信小程序,内容组件中兼容的H5组件

    受信任的HTML节点及属性

    全局支持class和style属性,不支持id属性

    节点属性
    a  
    abbr  
    address  
    article  
    aside  
    b  
    bdi  
    bdo dir
    big  
    blockquote  
    br  
    caption  
    center  
    cite  
    code  
    col span,width
    colgroup span,width
    dd  
    del  
    div  
    dl  
    dt  
    em  
    fieldset  
    font  
    footer  
    h1  
    h2  
    h3  
    h4  
    h5  
    h6  
    header  
    hr  
    i  
    img alt,src,height,width
    ins  
    label  
    legend  
    li  
    mark  
    nav  
    ol start,type
    p  
    pre  
    q  
    rt  
    ruby  
    s  
    section  
    small  
    span  
    strong  
    sub  
    sup  
    table width
    tbody  
    td colspan,height,rowspan,width
    tfoot  
    th colspan,height,rowspan,width
    thead  
    tr colspan,height,rowspan,width
    tt  
    u  
    ul  

    Bug & Tip

    1. tip: nodes 不推荐使用 String 类型,性能会有所下降。
    2. tiprich-text 组件内屏蔽所有节点的事件。
    3. tip: attrs 属性不支持 id ,支持 class 。
    4. tip: name 属性大小写不敏感。
    5. tip: 如果使用了不受信任的HTML节点,该节点及其所有子节点将会被移除。
    6. tip: img 标签仅支持网络图片。
    7. tip: 如果在自定义组件中使用 rich-text 组件,那么仅自定义组件的 wxss 样式对 rich-text 中的 class 生效。
  • 相关阅读:
    qemu进程页表和EPT的同步问题
    Linux进程虚拟地址空间管理2
    qemu-kvm内存虚拟化1
    LInux进程虚拟地址空间的管理
    Linux下的文件系统2
    LInux中的文件系统1
    Linux IPC之管道通信
    操作系统中的特权级检查
    Linux下的信号机制
    进程的挂起、阻塞和睡眠
  • 原文地址:https://www.cnblogs.com/max-hou/p/11563624.html
Copyright © 2011-2022 走看看