css如下:
全选复制放进笔记.report {
width: 576px;
padding: 10px 27px;
background-color: #e6e5e5;
}
/* line 633, ../sass/other.scss */
.show_username {
font-size: 14px;
border-bottom: 10px;
}
/* line 638, ../sass/other.scss */
.comment_text {
resize: none;
width: 504px;
height: 62px;
border: 1px solid #139667;
}
/* line 645, ../sass/other.scss */
.submit_report {
float: right;
width: 66px;
line-height: 68px;
text-align: center;
color: #fff;
background-color: #139667;
}
.clearfix {
*height: 1%;
}
/* line 4, ../sass/_once.scss */
.clearfix:after {
clear: both;
content: '.';
display: block;
height: 0;
line-height: 0;
overflow: hidden;
}
如上所说,一起float:left就解决了,如果你想使用原有的方案,那就麻烦一点.
首先你要知道不同浏览器对元素的预设css是不一样的,margin,padding什么的都不同,首先你就要消除这些差异.
.comment_text {
resize: none;
width: 504px;
height: 66px;
border: 1px solid #139667;
display: inline-block;
padding: 0;
margin: 0;
}
.clearfix {
display: inline-block;
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。