mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Use one line per tag in code snippet for One class, multiple tags
This commit is contained in:
parent
7b7a02542b
commit
04a20fb402
@ -1550,13 +1550,9 @@ For example, <code>section</code> should be wrapped as inline.
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<a class="btn" href="">Link</a>
|
||||
<button class="btn" type="submit">
|
||||
Button
|
||||
</button>
|
||||
<input class="btn" type="button"
|
||||
value="Input">
|
||||
<input class="btn" type="submit"
|
||||
value="Submit">
|
||||
<button class="btn" type="submit">Button</button>
|
||||
<input class="btn" type="button" value="Input">
|
||||
<input class="btn" type="submit" value="Submit">
|
||||
</pre>
|
||||
<p>As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code><input type="submit"></code> for your button.</p>
|
||||
|
||||
|
10
docs/templates/pages/base-css.mustache
vendored
10
docs/templates/pages/base-css.mustache
vendored
@ -1487,13 +1487,9 @@
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<a class="btn" href="">{{_i}}Link{{/i}}</a>
|
||||
<button class="btn" type="submit">
|
||||
{{_i}}Button{{/i}}
|
||||
</button>
|
||||
<input class="btn" type="button"
|
||||
value="{{_i}}Input{{/i}}">
|
||||
<input class="btn" type="submit"
|
||||
value="{{_i}}Submit{{/i}}">
|
||||
<button class="btn" type="submit">{{_i}}Button{{/i}}</button>
|
||||
<input class="btn" type="button" value="{{_i}}Input{{/i}}">
|
||||
<input class="btn" type="submit" value="{{_i}}Submit{{/i}}">
|
||||
</pre>
|
||||
<p>{{_i}}As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code><input type="submit"></code> for your button.{{/i}}</p>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user