用LI布局表单解决文字不能对齐的方法


<title>LI布局表单解决文字靠底显示的方法</title>
<style>
*{margin:0;padding:0;font-size:12px}
.say{width:300px;margin:15px auto;}
.say li{margin:9px 0; list-style:none}
.say li a{color:#281bdd;text-decoration:underline}
.say li span{margin-right:10px}
.sayWidth{width:200px;line-height:19px;border:1px solid #7e9eb7}
.textL{line-height:25px;float:left;}
</style>
</head>
<body>
<div class="say">
<ul>
<li><span class="textL">标 题:</span><input name="textfield2" type="text" class="sayWidth" />
</li>
<li><span class="textL">内 容:</span><textarea name="textarea" rows="8" class="sayWidth"></textarea>
</li>
</ul>
</div>
</body>
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3