※ 引述《tatsuo769 (fish)》之銘言:
....
: 我希望可以在網站的top上有banner,這個我可以
: 但是我希望在圖片或是我的site name的右邊可以有一些字或者是textbox
:...
: 可是每次都換行變成下面的樣子
: |---------------------------------------------------------------|
: | |
: | Site name |
: | Search -----------button |
: | |
: -----------------------------------------------------------------
: div#banner
: {
: color: #fff;
: background-color: #333;
: border-bottom: 1px solid #000;
: }
....
: 請問有前輩可以教我嗎?感謝
你在#banner裡面加上一行 float:left; 然後限制寬度 width: XX;
網頁碼寫成:
<div id="banner">
<h1>Site name</h1>
</div>
<div id="search"> (假設你的搜尋區塊叫做#search)
搜尋碼
</div>
這樣應該能達到你的要求
--
我的首頁 http://digi-eyes.com
我的部落格 http://blog.digi-eyes.com
我的目錄網站 http://mulu.digi-eyes.com
firefox2.0下載 http://blog.digi-eyes.com/firefox/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.86.96.253