0
我開始佈局一個網站,我主要在Firefox中遇到問題,有時候根據條件Safari還有問題,例如在safari中如果我在地址欄中輸入頁面將在搜索框中顯示標題邊界的中間,但如果我再次突出顯示地址欄,並且我點擊輸入它顯示正確,如果我點擊刷新後正確顯示所有內容將導致搜索框在中間標題邊框和登錄div消失。一切工作都很棒。在Firefox中,無論我做什麼,提交按鈕都在文本輸入框下方,似乎停留在那裏。我的代碼是在這裏http://jsfiddle.net/ES2Mz/及以下:CSS和firefox問題有時Safari瀏覽器
<html>
<head>
<title>
TESTING!
</title>
<LINK href="CLLProfile.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div id="header">
<img src="http://www.placekitten.com/400/100">
<div class="login">
<a href="http://www.signup.com">Sign Up</a> <a href="http://www.login.com">Login</a>
</div>
<div class="search">
<form id ="search" action="" method="post" enctype="multipart/form-data">
<label>Search:</label>
<input type="text" name="searchBox" id="searchBox" /> <input type="submit" id="Submit" value="Submit" />
</form>
</div>
</div>
<div class="content">
Here is the CONTENT
<div class="profileInfo">
PROFILE INFO
</div>
</div>
</div>
</body>
</html>
CSS
body{
background: gainsboro;
}
.container{
padding-top: 20px;
background: gold;
width: 900px;
height: 1300px;
margin: 0 auto;
}
.content {
background: #aad500;
width: 800px;
height: 1100px;
margin: 0 auto;
border: black solid medium;
}
#header {
width: 800px;
height: 150px;
margin: 0 auto;
background: #aad500;
border: black solid medium;
}
#header img{
position: relative;
left: 50px;
top: 25px;
}
.login {
width: 350px;
height: 35px;
float: right;
background: #aad500;
}
.search{
background: #aad500;
color: white;
width: 250px;
height: 20px;
position: relative;
margin-top: 10px;
margin-left: 550px;
}
.profileInfo{
background: whitesmoke;
width: 750px;
height: 800px;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}
.login a{
float: right;
margin-left: 10px;
margin-right: 20px;
margin-top: 5px;
font-size: large;
color: whitesmoke;
}