我有一些非常簡單的代碼。該鏈接在第二個以前工作,現在不是! (已經檢查並清空緩存)。爲什麼我的鏈接不工作?
這裏是我的網站: 上側的導航欄應該去http://claireisabelwebb.com/experiments.html等環節應打開懸停斜體,他們正在參觀後不同的顏色。
這裏的CSS:
/* Link Styles***********************************************************************/
#home_link a:link{
font-family: 'Lato', sans-serif;
color: #330066;
text-decoration: none;
font-size: 115px;
font-weight: 100;
text-align: left;
letter-spacing: -28px;
}
#home_link a:visited{
font-family: 'Lato', sans-serif;
color: #330066;
text-decoration: none;
font-size: 150px;
font-weight: 100;
text-align: left;
letter-spacing: -28px;
}
#main_menu a:link{
font-family:'Lato', sans-serif;
font-size: 30px;
font-weight: 100;
color:#336699;
text-decoration: none;
text-align: left;
letter-spacing:0.2em;
}
#main_menu a:visited{
font-family: 'Lato', sans-serif;
font-size: 30px;
font-weight: 100;
color:#005522;
text-decoration: none;
text-align: left;
letter-spacing:0.2em;
}
#main_menu a:hover{
font-family:'Lato', sans-serif;
font-style: italic;
font-size: 30px;
font-weight: 100;
color:#CC0066;
text-decoration: none;
text-align: left;
letter-spacing:0.2em;
}
#sec_menu a:link{
font-family:'Lato', sans-serif;
font-weight: 100;
color:#CC0066;
text-decoration: none;
font-size: 16px;
text-align: left;
letter-spacing:0.2em;
}
#sec_menu a:visited{
font-family:'Lato', sans-serif;
font-weight: 100;
color:#005522;
text-decoration: none;
font-size: 16px;
text-align: left;
letter-spacing:0.2em;
}
#sec_menu a:hover{
font-family:'Lato', sans-serif;
font-style: italic;
font-size: 16px;
font-weight: 100;
color:#CC0066;
text-decoration: none;
text-align: left;
letter-spacing:0.2em;
}
和HTML:
<!-- Main Navigation Menu ______________________________________________-->
<div id="main_menu" class="main_wrapper_nav_box">
<div id="sec_menu">
<div class="main_page_nav_box">
<a href="Experiments.html">EXPERIMENTS</a>
</div>
<div class="main_page_nav_box">
<a href="writing.html">WRITING</a>
</div>
<div class="main_page_nav_box">
<a href="photography.html">PHOTOGRAPHY</a>
</div>
<div class="main_page_nav_box">
<a href="graphics.html">GRAPHICS</a>
</div>
<div class="main_page_nav_box">
<a href="artwork.html">ART WORK</a>
</div>
<div class="box_sec_nav_ms">
<a href="artwork.html">Modernist Summer</a>
</div>
<div class="box_sec_nav_r">
<a href="resume/Claire-Webb.pdf">Résumé</a>
</div>
</div>
</div>
預先感謝您!
謝謝謝謝 - 新這個。你會解釋爲什麼嗎?它是「覆蓋」它嗎? – Claire 2013-03-15 03:59:51
@Claire是的,這是...看看浮動,將幫助,但作爲浮動divs要小心,因爲他們需要非常尖銳的CSS工作,使其跨瀏覽器工作。 – 2013-03-15 04:01:40
@DipeshParmar,'float'可能是從瀏覽器到瀏覽器最一致的CSS屬性。 – Brad 2013-03-15 04:06:09