當我在頂部欄上更改我的顯示文本的分辨率時 有人能幫我解決它嗎?CSS - 當分辨率發生變化時,文本正在從欄中移動
Normaly: http://funedit.com/imgedit/soubory/small_10348459921396544905.jpg?x
有了改變分辨率,或用較小的borowser窗口: http://funedit.com/imgedit/soubory/small_19550755301396544822.jpg
我的HTML:
<body>
<div class="top-panel">
<div id="center"> <a class="top-button" href="#"></a>
<span class="text">Prave hraje <b>5000</b> hracov na <b>150</b> serveroch!</span>
<span class="panel">Registruj sa zdarma nebo</span>
<input type="text">
<input type="text">
<input type="image" id="login-button" src="images/login_button.png" alt="Submit">
<div class="warningimg"></div><div class="warning"> NIGHT CUP 2014 - Sledujte priamy prenos! </div>
<div class="main">
<div class="logobg">
<a class="logo" href="#"></a>
<input class="searchinput" type="text">
<input class="searchsubmit" type="image">
<div class="news"></div>
</div>
</div>
</div>
</div>
</body>
我的CSS:
body {
background-image:url('images/background.png');
background-repeat: no-repeat;
background-color:#cccccc;
background-size 100%;
margin: 0 auto;
font-family: Arial;
font-size: 13px;
position: relative;
background-position: 50% 0;
background-attachment: fixed;
}
#center {
width: 1030px;
margin: 0 auto;
/*display: inline-block; */
}
.top-panel {
background-image: url("images/top_panel.png");
background-repeat: repeat-x;
background-position: center;
height: 43px;
padding-top:5px;
display: block;
}
a.top-button {
background-image: url("images/top_button.png");
height: 37px;
width: 141px;
background-repeat: no-repeat;
display: inline-block;
margin-left: 20px;
}
.text {
color: #9c9c9c;
padding: 0px 10px;
}
.panel {
color: #6ab1ed;
padding: 0px 390px;
}
input{
vertical-align:top;
display: inline-block;
height: 21px;
width: 97px;
line-height: 25px;
text-align: center;
position: relative; left: 550px; top: 4px;
}
span{
position: absolute;
display: inline-block;
height: 35px;
line-height: 35px;
text-align: center;
}
span b{
font-weight:bold;
}
#login-button{
/*background-image: url("images/login_button.png"); uz je to v HTML*/
height: 27px;
width: 81px;
line-height: 27px;
display: inline-block;
position: relative; left: 550px; top: 4px;
}
如果有人想看到現場LIVE的位置:funedit.com/andurit/new/
感謝大家閱讀本:)
我正在談論藍色文本「Registruj sa zdarma nebo」 – user3009924
使用BIGTEXT內置插件請參閱下面我的帖子以獲取更多方法。 –
這裏有很多答案似乎對你有所幫助,這裏的規則是至少提供那些幫助你解決問題的方法,並接受(通過點擊打勾)你發現最好的答案。你會在這裏看到更多關於stackoverflow的信息:http://stackoverflow.com/about –