当前位置: 代码迷 >> 网页设计 >> 关于option中value的难题解决方法
  详细解决方案

关于option中value的难题解决方法

热度:133   发布时间:2012-04-11 17:42:33.0
关于option中value的难题
<option value="" selected="selected"></option>
<option value="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">">HTML 4.01 Transitional
</option>
<option value="
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">">
HTML 4.01 Strict
</option>
<option value="
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">">
HTML 4.01 Frameset
</option>
<option value="
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">">
XHTML 1.0 Transitional
</option>
<option value="
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">">
XHTML 1.0 Strict
</option>
<option value="
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">">
XHTML 1.0 Frameset
</option>
<option value="
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">">
XHTML 1.1
</option>
<option value="
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">">
HTML 3.2
</option>
<option value="
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">">
HTML 2.0
</option>
我的myeclipse显示错误请问上面的语句如何更改啊

------解决方案--------------------
<select name="">
<option value="selected="selected"> </option> 
<option value="&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;">HTML 4.01 Transitional 
</option> 
<option value=" 
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;">HTML 4.01 Strict</option> 
 <option value="..">....</option>
 </select>


&lt; = <
&gt; = >
&quot; = "
  相关解决方案