Jelajahi Sumber

clarify user-defined widths (#5078)

alexweissman 7 tahun lalu
induk
melakukan
7eef84ec1a
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      pages/04.appearance/docs.md

+ 5 - 5
pages/04.appearance/docs.md

@@ -127,27 +127,27 @@ Select2 will try to match the width of the original element as closely as possib
   </thead>
   <tbody>
     <tr>
-      <td><code>"element"</code></td>
+      <td><code>'element'</code></td>
       <td>
         Uses the computed element width from any applicable CSS rules.
       </td>
     </tr>
     <tr>
-      <td><code>"style"</code></td>
+      <td><code>'style'</code></td>
       <td>
         Width is determined from the <code>select</code> element's <code>style</code> attribute. If no <code>style</code> attribute is found, null is returned as the width.
       </td>
     </tr>
     <tr>
-      <td><code>"resolve"</code></td>
+      <td><code>'resolve'</code></td>
       <td>
         Uses the <code>style</code> attribute value if available, falling back to the computed element width as necessary.
       </td>
     </tr>
     <tr>
-      <td><code>{width_value}</code></td>
+      <td><code>'&lt;value&gt;'</code></td>
       <td>
-        Valid CSS values can be passed as a string (i.e. <code>80%</code>).
+        Valid CSS values can be passed as a string (e.g. <code>width: '80%'</code>).
       </td>
     </tr>
   </tbody>