Skip to content

Commit

Permalink
re-format code example
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Jul 28, 2023
1 parent fe15b6d commit 54175b0
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions files/zh-cn/learn/forms/how_to_build_custom_form_controls/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1961,40 +1961,36 @@ window.addEventListener("load", () => {

```html
<fieldset>
<legend>Pick a fruit</legend>
<legend>选择一种水果</legend>
<ul class="styledSelect">
<li>
<input
type="radio"
name="fruit"
value="Cherry"
id="fruitCherry"
checked /><label for="fruitCherry">Cherry</label>
checked />
<label for="fruitCherry">樱桃</label>
</li>
<li>
<input type="radio" name="fruit" value="Lemon" id="fruitLemon" /><label
for="fruitLemon"
>Lemon</label
>
<input type="radio" name="fruit" value="Lemon" id="fruitLemon" />
<label for="fruitLemon">柠檬</label>
</li>
<li>
<input type="radio" name="fruit" value="Banana" id="fruitBanana" /><label
for="fruitBanana"
>Banana</label
>
<input type="radio" name="fruit" value="Banana" id="fruitBanana" />
<label for="fruitBanana">香蕉</label>
</li>
<li>
<input
type="radio"
name="fruit"
value="Strawberry"
id="fruitStrawberry" /><label for="fruitStrawberry">Strawberry</label>
id="fruitStrawberry" />
<label for="fruitStrawberry">草莓</label>
</li>
<li>
<input type="radio" name="fruit" value="Apple" id="fruitApple" /><label
for="fruitApple"
>Apple</label
>
<input type="radio" name="fruit" value="Apple" id="fruitApple" />
<label for="fruitApple">苹果</label>
</li>
</ul>
</fieldset>
Expand Down

0 comments on commit 54175b0

Please sign in to comment.