关于DIV标签的问题 [英] Question about DIV tag

查看:122
本文介绍了关于DIV标签的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想使用

Hello,
I want to using

<div önload="func();"></div>


而是在


instead in

<body  önload="func();">

在用户控件中,但不起作用.
谢谢您的帮助.

in user control but does not working.
thank you for help.

推荐答案

尝试这样..

try like this..

<div onload="return func();">
 
</div>



并在函数中添加"return true"或"false"..

希望这会有所帮助.



and add "return true" or false in function..

hope this helps..


这篇关于关于DIV标签的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆