【问题标题】:elastic plugin not working in ie9弹性插件在ie9中不起作用
【发布时间】:2011-10-13 01:35:05
【问题描述】:

我有以下代码。在firefox下可以正常使用,在ie9下不行?

<script src="http://google-cdn.joinpgn.com/js/jquery/jquery-1.5.2.min.js"></script> 
<!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<script type="text/javascript" src="js/jquery.elastic.source.js"></script>

<textarea id="description" style="overflow: hidden; height: 20px;">This textarea is going to grow when you fill it with text. Just type a few more words in it and you will see. </textarea>

<script>
jQuery('#description').elastic();

</script>

<style>

textarea { font-family: Arial, 'sans-serif' }
</style>

【问题讨论】:

    标签: jquery elasticlayout


    【解决方案1】:

    你的代码很乱,不干净,你根本没有启动 $(function())。

       <script type="text/javascript">
        $(function(){
        $('#description').elastic();
        });
        </script>
    

    【讨论】:

    • 它不会改变任何东西。代码仍然无法在 IE9 中运行
    猜你喜欢
    • 2011-10-13
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-24
    • 1970-01-01
    相关资源
    最近更新 更多