我有以下
HTML.我想這樣做,這隻是一個沒有邊界的白色空間.我嘗試用CSS删除邊框:#search-box {border:none;}但是沒有用.有什麼想法嗎?
這是它所在的HTML:
Word 4 Word
Home
New Test
Help
Settings
這是相關的CSS:
#topNav {
padding-top: 10px;
padding-bottom: 10px;
background: black;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.topNavLink {
text-decoration: none;
color: orange;
padding-left: 10px;
padding-right: 10px;
}
#headingTitle {
font-size: 1.3em;
}
#searchBttn {
height: 25px;
}
#searchInput{
border: none;
background: black;
}