Maybe I Got Answer , not GreaseMonkey or JavaScript cause. Is Firefox's font config , must set default font. I set default font to '微軟正黑體' . It is OK, maybe.
Jii Chen於 2013年1月24日星期四UTC+8上午1時09分51秒寫道: > > > test site: http://www.yahoo.com/ > browser: firefox 18.0.1 > GreaseMonkey 1.7.1 > > > When I install this test script , and browse http://www.yahoo.com/ > > This test script will append a button after 3.5 seconds. And you will see > font style changed. > > But change code "position:fixed" to "position:absolute". This script do > not cause font style change. > > Why? Anybody has the same question? > > ----------------------- > > // ==UserScript== > // @name jc_test > // @namespace http://localhost/jc/ > // @require > http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js > // @include http://www.yahoo.com/* > // @version 3 > // ==/UserScript== > > > $(document).ready(function() { > > window.setTimeout(function() { > > $('body').append('<input type="button" value="TEST" > style="position:fixed; left:50px; top:150px;" />'); > > } , 3500); > > }); > > > > -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
