我的 p 标签怎么不能去除margin和padding呢?我是在chrome里面浏览的<div class="login_body"> <form action=""> <p>总错误信息</p> <div> <input type="text" value="用户名"> <p>错误信息</p> </div> <div> <input type="text" value="密码"> <p>错误信息</p> </div> <div> <input type="text" value="验证码"> <p>错误信息</p> </div> <div> <label for=""> <input type="checkbox" checked="checked"> 下次自动登录 <a href="">忘记密码</a> </label> </div> <div> <input type="submit" name="login" value="登录"> </div> </form> </div>/********************************************************CSS********************************************/.login_wrapper {position: fixed;left: 0;top: 0;bottom:0;right: 0;z-index: 100;background-color: #000;opacity: 0.75;}.login {position: fixed;left: 37%;top: 10%;z-index: 200;background-color: #fff;width: 360px;}.login_header h2 {border-bottom: 1px solid #C5C5D1;width:320px;margin:0 auto;color:#919292;height: 49px;line-height: 49px;}.login_header span {float: left;width: 80px;}.login_close { position: absolute; top: 12px; right: 17px; width: 17px; height: 17px; background-color:#fff; background-image:url(../images/close-1.png); background-repeat:no-repeat; outline: none;}.login_body {width: 300px;margin: 0 auto;}.login_boby p {margin: 0;padding: 0;}
1 回答
- 1 回答
- 0 关注
- 3472 浏览
添加回答
举报
0/150
提交
取消