三月 24th, 2006
利用fieldset来应付xhtml 1.1
Category: CSS, Author: Nicky, Popularity: 8%fieldset { margin: 0; padding: 0; border: none;}。当然这是一个为了标准而使用fieldset的方法,fieldset在其他方面是一个必不可少的重要元素,所以W3C很重视它的存在。
例如这个是通不过XHTML 1.0 Strict和XHTML 1.1标准的:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fieldset的应用</title>
</head>
<body>
<form action="#">
<select name="menu1"><option>fieldset的应用</option></select>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fieldset的应用</title>
</head>
<body>
<form action="#">
<select name="menu1"><option>fieldset的应用</option></select>
</form>
</body>
</html>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fieldset的应用</title>
<style type="text/css">fieldset { margin: 0; padding: 0; border: none;}</style>
</head>
<body>
<form action="#">
<fieldset><select name="menu1"><option>fieldset的应用</option></select></fieldset>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fieldset的应用</title>
<style type="text/css">fieldset { margin: 0; padding: 0; border: none;}</style>
</head>
<body>
<form action="#">
<fieldset><select name="menu1"><option>fieldset的应用</option></select></fieldset>
</form>
</body>
</html>
Tags:fieldset, xhtml.
评论数量(2) | Add Comments
本文网址:http://www.osxcn.com/css/fieldset-xhtml-11.html

