求一段简单的html代码?
来源:百度知道 编辑:UC知道 时间:2024/04/29 10:47:18
在一个div里面,左边三个checkbox垂直对其,右边三个checkbox垂直对其,请问如何写?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>test</title>
<style>
body,div,ul,li{
margin:0;
padding:0;
}
li{
float:left;
}
input{
display: block;
}
</style>
</head>
<body>
<div>
<ul>
<li>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
</li>
<li>
<input type="