我在我的web應用程序的一個頁面中包含MS翻譯器網頁小部件。更改css Microsoft Translator網頁小部件
這是代碼:
<span id='MicrosoftTranslatorWidget' class='Dark' style='color:white;background-color:#000;'></span>
<script type='text/javascript'>
setTimeout(function(){{
var s=document.createElement('script');
s.type='text/javascript';
s.charset='UTF-8';
s.src=((location && location.href && location.href.indexOf('https') == 0)?'https://ssl.microsofttranslator.com':'http://www.microsofttranslator.com')+'/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**&ctf=False&ui=true&settings=Manual&from=en';
var p=document.getElementsByTagName('head')[0]||document.documentElement;
p.insertBefore(s,p.firstChild); }},0);
</script>
它的工作原理,但微軟從http://www.microsofttranslator.com/static/187544/css/ 我的CSS後調用使用兩個CSS(WidgetLauncher.css
和WidgetV3.css
),所以也沒用改變一些CSS屬性的值。
是否存在可能的解決方案?
是的。另外MS css將一些屬性定義爲!important。但是,「奇怪」的是,如果我看到了html代碼,extern css會在我的之前被包含。 – Sefran2