小编pat*_*ick的帖子

CSS样式Firefox/Safari/Chrome

我有浏览器之间的CSS差异问题.我有一个简单的输入文本字段和一个提交按钮.应该安排.使用webkit(safari/webkit)一切看起来都很好,但是firefox并没有这样做.有没有人知道什么是错的?

我写了一个小测试html页面:

<html>
<head>
<style type="text/css">

#input {
    background: none repeat scroll 0 0 white;
    border-color: #DCDCDC;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    font: 13px "Lucida Grande",Arial,Sans-serif;
    margin: 0;
    padding: 5px 5px 5px 15px;
    width: 220px;
    outline-width: 0;
 height: 30px;
}

#submit {
    background: none repeat scroll 0 0 white;
    border: 1px solid #DCDCDC;
    font: 13px "Lucida Grande",Arial,Sans-serif;
    margin: 0;
    outline-width: 0;
 height: 30px;
    padding: 5px 10px;
}

</style>
</head>
<body>
<input id="input" type="text" value="" /><input id="submit" type="button" value="Add" …
Run Code Online (Sandbox Code Playgroud)

html css firefox webkit

5
推荐指数
1
解决办法
3309
查看次数

标签 统计

css ×1

firefox ×1

html ×1

webkit ×1