表单<input type="checkbox">标签 与 字体对齐

来源:互联网 发布:mysql 登录失败 编辑:程序博客网 时间:2024/06/05 08:16

如果直接写

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>市场操作</title><style type="text/css" >    body{padding:0px; margin:0px; text-align:left; font-size:12px; }</style></head><body>    <div>    <br/>    <input type="checkbox" name="tess" value="1">男人不累    <input type="checkbox" name="tess" value="1">双方都     <input type="checkbox" name="tess" value="1">该死的累     <input type="checkbox" name="tess" value="1">俄文累     <input type="radio" name="tess" value="1">水电费     <input type="radio" name="tess" value="1">俄的说法文累     <input type="radio" name="tess" value="1">是否     <input type="radio" name="tess" value="1">俄文累     <div></body></html>

结果是:
这里写图片描述

想要对齐就需要添加css样式
这里写图片描述
最终结果:
这里写图片描述

0 0
原创粉丝点击