2012-03-13 43 views
0

我想匹配公司徽標中的一種顏色,但我不確定我需要更改哪些顏色。那裏至少有4個div。我該更換哪一個?或者我是否全部改變了?有什麼地方可以查找需要更改的內容嗎?如何更改黑色橫幅欄的顏色?

+0

始終使用Firefox的Firebug或Chrome的開發者工具,以找到合適的class和id。這很容易,你可以改變風格,並實時查看結果 – 2012-03-13 12:49:19

+0

請記住標記你的問題回答。 – jjtbsomhorst 2012-03-14 05:40:37

回答

11

請看看這個網站:Oneui v2.1 documentation。在組件樹中,您將找到'橫幅'組件。這是您需要更新/更改的控件。

默認實現具有以下樣式:

.lotusBanner { 
    background-color: #000000; 
    background-image: -moz-linear-gradient(center top , #525252 0%, #000000 100%); 
    padding: 0 10px; 
} 

你應該改變背景色和背景圖像。最好是創建延伸默認oneuiv2.1主題一個新的主題,並添加自己的CSS它這會取代默認:

<theme extends="oneuiv2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd" > 
    <!-- 
     Use this pattern to include resources (such as style sheets 
     and JavaScript files that are used by this theme. 
    --> 

    <resource> 
     <content-type>text/css</content-type> 
     <href>your.css</href> 
    </resource> 


    <!-- 
     Use this pattern to define property name/value pairs for controls 
    --> 
    <!-- 
    <control> 
     <name>[Control Name]</name> 
     <property> 
      <name>[property Name]</name> 
      <value>[property Value]</value> 
     </property> 
    </control> 
    --> 
</theme>