003.update窗口缩放
生活随笔
收集整理的這篇文章主要介紹了
003.update窗口缩放
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.瀏覽器打開template.html
再將窗口縮小,標簽大小沒有跟隨窗口變化。
2.將template.html另存為update.html,修改fyjs(flyingon所在的<script>代碼塊),添加的var host=和flyingon.dom_on()。
<script type="text/javascript">var host=flyingon.view({host: 'container',template: '#template',defaults: {lay: 'vertical-line',pad: '10',txt1: '請在此輸入',txt2: '點擊'}});flyingon.dom_on(window, 'resize', function () {host.update();});</script>元素跟隨窗口縮放
?
總結
以上是生活随笔為你收集整理的003.update窗口缩放的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 天天向上实例的 java-code
- 下一篇: 世界杯,刹那的12年