|
9 | 9 | <body> |
10 | 10 | <div class="tablinks active" id="tab-1" onclick="openTab('counter-1')">计算线长</div> |
11 | 11 | <div class="tablinks" id="tab-2" onclick="openTab('counter-2')">计算线宽</div> |
12 | | - <div id="counter-1" class="tabcontent"> |
13 | | - <!-- 阻值 --> |
14 | | - <label for="resistance-1">阻值(Ω):</label> |
15 | | - <input type="number" id="resistance-1" name="resistance-1" value="5" min="0" step="0.01" /> |
| 12 | + <div id="counter-1" class="container tabcontent"> |
| 13 | + <div class="form-item"> |
| 14 | + <label for="resistance-1">阻值(Ω):</label> |
| 15 | + <input type="number" id="resistance-1" name="resistance-1" value="5" min="0" step="0.01" /> |
| 16 | + </div> |
16 | 17 |
|
17 | | - <!-- 铜片厚度 默认35 --> |
18 | | - <label for="thickness-1">铜片厚度(μm):</label> |
19 | | - <select id="thickness-1" name="thickness-1"> |
20 | | - <option value="12">12</option> |
21 | | - <option value="18">18</option> |
22 | | - <option value="35" selected>35</option> |
23 | | - <option value="70">70</option> |
24 | | - </select> |
| 18 | + <div class="form-item"> |
| 19 | + <label for="thickness-1">铜片厚度(μm):</label> |
| 20 | + <select id="thickness-1" name="thickness-1"> |
| 21 | + <option value="12">12</option> |
| 22 | + <option value="18">18</option> |
| 23 | + <option value="35" selected>35</option> |
| 24 | + <option value="70">70</option> |
| 25 | + </select> |
| 26 | + </div> |
25 | 27 |
|
26 | | - <!-- 线宽 --> |
27 | | - <label for="lineWidth-1">线宽(mm):</label> |
28 | | - <input type="number" id="lineWidth-1" name="lineWidth-1" value="0.254" min="0" step="0.001" /> |
| 28 | + <div class="form-item"> |
| 29 | + <label for="lineWidth-1">线宽(mm):</label> |
| 30 | + <input type="number" id="lineWidth-1" name="lineWidth-1" value="0.254" min="0" step="0.001" /> |
| 31 | + </div> |
29 | 32 |
|
30 | | - <!-- 线长 --> |
31 | | - <label for="length-1">线长(mm):</label> |
32 | | - <input type="number" id="length-1" name="length-1" value="0" disabled /> |
| 33 | + <div class="form-item"> |
| 34 | + <label for="length-1">线长(mm):</label> |
| 35 | + <input type="number" id="length-1" name="length-1" value="0" disabled /> |
| 36 | + </div> |
33 | 37 |
|
34 | 38 | <button id="calc-1">计算</button> |
35 | 39 | </div> |
36 | | - <div id="counter-2" class="tabcontent" style="display: none"> |
37 | | - <!-- 阻值 --> |
38 | | - <label for="resistance-2">阻值(Ω):</label> |
39 | | - <input type="number" id="resistance-2" name="resistance-2" value="5" min="0" step="0.01" /> |
| 40 | + <div id="counter-2" class="container tabcontent" style="display: none"> |
| 41 | + <div class="form-item"> |
| 42 | + <label for="resistance-2">阻值(Ω):</label> |
| 43 | + <input type="number" id="resistance-2" name="resistance-2" value="5" min="0" step="0.01" /> |
| 44 | + </div> |
40 | 45 |
|
41 | | - <!-- 铜片厚度 默认35 --> |
42 | | - <label for="thickness-2">铜片厚度(μm):</label> |
43 | | - <select id="thickness-2" name="thickness-2"> |
44 | | - <option value="12">12</option> |
45 | | - <option value="18">18</option> |
46 | | - <option value="35" selected>35</option> |
47 | | - <option value="70">70</option> |
48 | | - </select> |
| 46 | + <div class="form-item"> |
| 47 | + <label for="thickness-2">铜片厚度(μm):</label> |
| 48 | + <select id="thickness-2" name="thickness-2"> |
| 49 | + <option value="12">12</option> |
| 50 | + <option value="18">18</option> |
| 51 | + <option value="35" selected>35</option> |
| 52 | + <option value="70">70</option> |
| 53 | + </select> |
| 54 | + </div> |
49 | 55 |
|
50 | | - <!-- 线长 --> |
51 | | - <label for="length-2" |
52 | | - >线长(mm):<span id="select-tip-icon"><span>应用于此</span></span></label |
53 | | - > |
54 | | - <input type="number" id="length-2" name="length-2" value="100" min="0" step="0.001" /> |
| 56 | + <div class="form-item"> |
| 57 | + <label for="length-2"> |
| 58 | + 线长(mm): |
| 59 | + <span id="select-tip-icon"> |
| 60 | + <span>应用于此</span> |
| 61 | + </span> |
| 62 | + </label> |
| 63 | + <input type="number" id="length-2" name="length-2" value="100" min="0" step="0.001" /> |
| 64 | + </div> |
55 | 65 |
|
56 | | - <!-- 线宽 --> |
57 | | - <label for="lineWidth-2">线宽(mm):</label> |
58 | | - <input type="number" id="lineWidth-2" name="lineWidth-2" value="0" disabled /> |
| 66 | + <div class="form-item"> |
| 67 | + <label for="lineWidth-2">线宽(mm):</label> |
| 68 | + <input type="number" id="lineWidth-2" name="lineWidth-2" value="0" disabled /> |
| 69 | + </div> |
59 | 70 |
|
60 | 71 | <button id="calc-2">计算</button> |
61 | 72 | <button id="apply-2">应用于<span id="netName">HILBERT</span></button> |
|
0 commit comments