html - Firefox 与其他填充对齐方式的差异

标签 html css user-interface alignment

请检查下面的 fiddle :

https://jsfiddle.net/a13nd32u/3/

 #post_part{display:inline;padding:6px 9px;float:right;font-size:15px}
 select{width:80px;height:21px;padding-right:10px;display:inline} 
 #button1{display:inline;padding-left:10px}
 #post_button{height:24px;width:70px;font-size:14px;-webkit-appearance:     none;}

发布按钮超出了框,但在其他浏览器中它看起来非常好。有人可以帮忙吗

最佳答案

要确保浏览器之间的外观正确,您应该尝试使用重置。

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

关于html - Firefox 与其他填充对齐方式的差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35251307/

相关文章:

user-interface - 在 Inno Setup 中提示用户输入要在快捷方式中使用的文件

ios - UITextView/UITextField 中的格式化文本/标签

php - HTML 表单数据到 SQL 数据库

javascript - 无法使用 jQuery 填充某些复选框

javascript - 可以禁用表中的所有字段并设置条件以启用所需的某些字段??

html - Bootstrap - 将页面标题与 float 按钮居中对齐

javascript - 使用字符串作为reactDOM.render、marked.js 和 babel 的输入

jquery - 进入网站时默认链接处于事件状态

html - css div 在不应该的时候有不同的宽度

java - 使用私有(private)类访问 JTextField