現在位置: 首頁 > 電腦科技 > wordpress > 模板修改 > 正文
WordPress – Twenty Ten選單位置修改
2010年12月27日 模板修改 ⁄ 共 403字 暂无评论 ⁄ 被围观 2,805 views+

twenty ten的選單功能很有趣,可以用很簡單的code就設定在預定的網頁header圖像的任何地方。

打開style.css

加入

#header #access{top: -200px; position: relative;}

menu就會去了圖片上方,但還在圖片入面的。

#header #access{top: -37px;position: relative;}  用這一條呢就會去了圖像下面

想為menu的背景加入透明效果,就輸入以下的code


#access {/* fallback for web browsers that doesn’t support RGBa */

background: rgb(0, 0, 0) !important;/* RGBa with 0.70 opacity */

background: rgba(0, 0, 0, 0.70)!important;}

之後呢,如果有興趣可以改一下code,效果很百變,當然要有少少css常識。