index.hml 8.1 KB
Newer Older
B
bayanxing 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
<div class="container">
    <div class="style-container">
        <text class="title">
            通用样式
        </text>
        <text class="sub-title">
            rect通用样式1
        </text>
            <rect class="style1" id="style1" x="0" y="-5" width="30" height="30" ></rect>
        <text  class="sub-title">
            rect通用样式2
        </text>
        <svg x="0" y="0" width="100" height="100">
            <rect class="style2" id="style2" x="0" y="10" width="30" height="30" fill="blue"></rect>
        </svg>
        <text  class="sub-title">
            rect通用样式3
        </text>
        <svg  x="0" y="0" width="100" height="100"  >
            <rect  class="style3" id="style3" x="0" y="0" width="30" height="30" fill="blue" fill-opacity="0.5"></rect>
        </svg>
        <text  class="sub-title">
            rect通用样式4
        </text>
        <svg  x="0" y="0" width="100" height="80" >
            <rect class="style4" id="style4" x="10" y="5" width="50" height="50" fill="blue" fill-opacity="0" stroke="yellow" stroke-width="4" rx="10" ry="10" ></rect>
        </svg>
        <text  class="sub-title">
            rect通用样式5
        </text>
        <div class="contain1">
            <svg  width="100" height="30">
                <rect class="style5" id="style5" x="10" y="0" width="70" height="30" fill="blue" ></rect>
            </svg>
            <svg  width="100" height="30">
                <rect class="style6" id="style6" x="10" y="0" width="70" height="30" fill="blue" ></rect>
            </svg>
        </div>
    </div>
    <divider style="color: #000000; stroke-width: 2px;" vertical="true">
    </divider>
    <div class="sub-container">
        <div class="prop-container">
            <text class="title">
                通用属性
            </text>
            <text class="sub-title">
                rect通用属性1
            </text>
            <svg x="0" y="0" width="180" height="80" viewBox="0 0 180 60"  id="prop1" class="prop1" data-name ="prop1">
                <rect x="10" y="10" width="50" height="50" fill-opacity="0.5"></rect>
                <rect x="80" y="10" width="50" height="50" opacity="0.8"></rect>
            </svg>

            <text  class="sub-title">
                rect通用属性2
            </text>
            <svg x="0" y="0" width="180" height="80" viewBox="0 0 180 60" ref ="prop2" class="prop2" data-name ="prop2" >
                <rect x="10" y="10" width="50" height="50" stroke="red"  stroke-width="4" fill="white"></rect>
                <rect x="70" y="10" width="50" height="50" stroke="red"  stroke-width="4" fill="yellow" stroke-dasharray="5 3" stroke-dashoffset="10"></rect>
                <rect x="130" y="10" width="50" height="50" stroke="blue"  stroke-width="4" stroke-dashoffset="10" fill="white" stroke-opacity="0.6"></rect>
            </svg>
            <text  class="sub-title">
                rect通用属性3
            </text>
            <svg id="prop3" class="prop3" x="0" y="0" width="180" height="140" viewBox="0 0 180 140" >
                <rect x="10" y="10" width="50" height="50" stroke="red"  stroke-width="4" fill="white" transform="rotate(-10)"></rect>
                <rect x="60" y="10" width="50" height="50" stroke="red"  stroke-width="4" fill="white"  transform="translate(40)"></rect>
                <rect x="10" y="70" width="50" height="50" stroke="red"  stroke-width="4" fill="white"  transform="skewX(10)"></rect>
                <rect x="120" y="70" width="50" height="50" stroke="red"  stroke-width="4" fill="white" transform="skewY(5)"></rect>
            </svg>
            <text  class="sub-title">
                rect特有属性4
            </text>
            <svg id="prop4" class="prop4" x="0" y="0" width="200" height="80" viewBox="0 100 60" fill="white">
                <rect x="0" y="10" width="50" height="50" stroke="red" stroke-width="3"></rect>
                <rect x="60" y="10" width="50" height="50" stroke="yellow" stroke-width="3" rx="10" ry="10"></rect>
                <rect x="120" y="10" width="50" height="50" stroke="blue" stroke-width="3" rx="10" ry="10" ></rect>
            </svg>
        </div>
        <divider style="color: #000000; stroke-width: 2px;" vertical="false">
        </divider>
        <div class="ani-container">
            <text class="title">
                动画样式
            </text>
            <text class="sub-title">
                rect动画样式1
            </text>
            <svg width="200" height="100">
                <rect x="20" y="10" width="60" height="60" fill="red" rx="0" ry="20">
                    <animate attributeName="rx" values="0;20" dur="1000" repeatCount="10" fill="freeze" calcMode="linear"></animate>
                </rect>
            </svg>
            <text class="sub-title">
                rect动画样式2
            </text>
            <svg width="200" height="100">
                <rect x="20" y="10" width="50" height="50" fill="red" rx="0" ry="20">
                    <animate attributeName="fill" from="red" to="blue" dur="1000" repeatCount="indefinite"></animate>
                    <animate attributeName="height" from="50" to="100" begin="500" end="1000" repeatCount="indefinite">  </animate>
                </rect>
            </svg>
        </div>
    </div>

    <divider style="color: #000000; stroke-width: 2px;" vertical="true">
    </divider>

    <div class="sub-container">
        <div class="gradient-container">
            <text class="title">
                渐变样式
            </text>
            <text class="sub-title">
                rect渐变样式1
            </text>
            <svg class="gradient1" x="0" y="0" width="200" height="80" viewBox="0 0 60 60">
                <rect x="10" y="5" width="50" height="50" fill="white" fill-opacity="0" stroke="block" stroke-width="4" rx="10" ry="10" stroke-dasharray="5 3" stroke-dashoffset="3"></rect>
            </svg>
            <text  class="sub-title">
                rect渐变样式2
            </text>
            <svg class="gradient2"  x="0" y="0" width="200" height="80" viewBox="0 0 60 60">
                <rect x="10" y="5" width="50" height="50" fill="white" fill-opacity="0" stroke="blue" stroke-width="4" rx="10" ry="10" ></rect>
            </svg>
            <text  class="sub-title">
                rect渐变样式3
            </text>
            <svg class="gradient3"  x="0" y="0" width="200" height="80" viewBox="0 0 60 60">
                <rect x="10" y="5" width="50" height="50" fill="pink" fill-opacity="0" stroke="yellow" stroke-width="4" rx="10" ry="10" ></rect>
            </svg>
            <text  class="sub-title">
                rect渐变样式4
            </text>
            <svg class="gradient4" x="0" y="0" width="200" height="80" viewBox="0 0 60 60">
                <rect x="10" y="5" width="50" height="50" fill="white" fill-opacity="0" stroke="red" stroke-width="4"></rect>
            </svg>
        </div>
        <divider style="color: #000000; stroke-width: 2px;" vertical="false">
        </divider>
        <div class="access-container">
            <text class="title">
                无障碍
            </text>
            <text class="sub-title">
                rect无障碍1
            </text>
            <svg class="access1" accessibilitygroup ="true"
                 accessibilitytext="这是circle"
                 accessibilitydescription="rect"
                 accessibilityimportance="no-hide-descendants"
                 width="200" height="50" >
                <rect x="10" y="5" width="200" height="50" fill="#00FF00"></rect>
            </svg>
        </div>
        <divider style="color: #000000; stroke-width: 2px;" vertical="false">
        </divider>

        <div class="multimode-container">
            <text class="title">
                多模输入
            </text>
            <text class="sub-title">
                rect多模输入1
            </text>
            <svg class="multimode1" width="200" height="50"  voicelabel = "voice"
                 subscriptflag="on" subscriptlabel="divider" scenelabel="common">
                <rect x="10" y="5" width="200" height="50" fill="#978666"></rect>
            </svg>
        </div>
    </div>
</div>