From d490e42ffe823173477b841ec397105bd06cb336 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 17 Jun 2021 13:35:36 -0400 Subject: rid of $samples iframes --- files/zh-cn/web/html/element/select/index.html | 39 +++++--------------------- 1 file changed, 7 insertions(+), 32 deletions(-) (limited to 'files/zh-cn/web/html/element/select') diff --git a/files/zh-cn/web/html/element/select/index.html b/files/zh-cn/web/html/element/select/index.html index 470f6ec2fa..fa0d3e3cfa 100644 --- a/files/zh-cn/web/html/element/select/index.html +++ b/files/zh-cn/web/html/element/select/index.html @@ -100,7 +100,7 @@ translation_of: Web/HTML/Element/select

示例

-

基本选择

+

基本选择

<!-- 第二项会默认选中 -->
 <select name="select">
@@ -112,13 +112,13 @@ translation_of: Web/HTML/Element/select
 
 

结果

-

+

{{EmbedLiveSample("Basic_select", "", "100")}}

-

使用多选的进阶选择

+

使用多选的进阶选择

下面的例子更加复杂,展示了可用在 <select> 元素上的更多功能:

-
<label>Please choose one or more pets:
+
<label>Please choose one or more pets:
   <select name="pets" multiple size="4">
     <optgroup label="4-legged pets">
       <option value="dog">Dog</option>
@@ -134,7 +134,7 @@ translation_of: Web/HTML/Element/select
 </label>
 
-

+

{{EmbedLiveSample("Advanced_select_with_multiple_features", "", "100")}}

你会看见:

@@ -182,36 +182,11 @@ translation_of: Web/HTML/Element/select

规范

- - - - - - - - - - - - - - - - - - - - - - - - - -
规范状态注释
{{SpecName('HTML WHATWG', 'forms.html#the-select-element', '<select>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'forms.html#the-select-element', '<select>')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML4.01', 'interact/forms.html#h-17.6', '<select>')}}{{Spec2('HTML4.01')}}
+

{{Specifications}}

浏览器兼容性

-
{{Compat("html.elements.select")}}
+
{{Compat}}

参见

-- cgit v1.2.3-54-g00ecf