2012-07-21 137 views
-2

我終於找到了適用於所有瀏覽器的股票代碼。只是希望做一些更多的黑客,使它看起來更好:CSS股票代碼修復程序

1)使字體大小相同的頁面 2)擺脫「目前的股票價值」的其餘部分黑條 3)拆下​​淺灰背後的股票代碼

非常感謝您的幫助

這裏是頁 http://petrowest.squarespace.com/home/

+2

我們應該幫你做你的工作......爲什麼? – 2012-07-21 06:03:22

回答

1

由於您使用的模塊,而不是直接把代碼放到網站上,你必須破解它周圍:

.standard[background-color="#000000"] { display: none; } 
.standard { font-size: 14px; /* put in size here */ background:white; /* eliminate grey background} 
1

我看着你鏈接的petrowest網站的源。它看起來像petrowest就是採用這種股票代碼模塊:

http://www.google.com/ig/directory?type=gadgets&url=hosting.gmodules.com/ig/gadgets/file/111070972621517437361/mini-stocks-gadget.xml

一旦嵌入模塊到你的網站,你應該能夠在本地建立這樣的XML文件,然後編輯的股票代碼的定義。

如果您查看petrowest頁面的源代碼,你會看到這樣一行:

<div class="stock-ticker"><script src="//www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/111070972621517437361/mini-stocks-gadget.xml&amp;up_stocks=PRW.TO&amp;synd=open&amp;w=200&amp;h=50&amp;title=&amp;output=js"></script></div>

然後,如果你點擊嵌入的URL,http://hosting.gmodules.com/ig/gadgets/file/111070972621517437361/mini-stocks-gadget.xml,你會看到一個函數的定義有一個內聯的CSS定義。如果您將mini-stocks-gadget.xml保存到您的服務器上,則應該可以嘗試使用該函數的css部分以使其看起來像您想要的那樣。

+0

對不起,每個人,我都無法得到它的工作。這是我對我的CSS .standard {background-color:#FFF;} {display:none!important; } .standard {font-size:14px!important; background-color:#FFF;}這是再次鏈接到頁面http://petrowest.squarespace.com/home/ – user1530535 2012-07-21 18:26:05