TRY:
<input type="text" style="width:80px;" onfocus="this.select();this.scrollLeft=this.scrollWidth;" onblur="this.scrollLeft=0;" value="hello world hello world hello world!">
<input type="text" style="width:80px;" onfocus="this.select();this.scrollLeft=this.scrollWidth;" onblur="this.scrollLeft=0;" value="hello world hello world hello world!">
这些东东,在firefox下是不支持的。万一客户头脑发热用firefox呢。。
让我想起,以前,BOSS只知道用IE,有些东东在FF下乱七八糟的我都不管了结果有一点,BOSS脑袋抽风了,不知道给谁忽悠了说用FF好,结果…………