Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我这个 为什么看不到提示,提示貌似在left:1920的地方 #22

Open
zhishaofei3 opened this issue Jun 24, 2014 · 0 comments

Comments

@zhishaofei3
Copy link

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title></title>
</head>
<body>
<div style="margin-top: 100px;">
    <div id="test">nihao</div>
</div>
<script src="sea-modules/seajs/seajs/2.2.0/sea.js"></script>
<script src="sea-modules/seajs/seajs-style/1.0.2/seajs-style-debug.js"></script>
<script>
    seajs.config({
        base: "./sea-modules/",
        alias: {
            "$": "jquery/jquery/1.10.1/jquery",
            "$-debug": "jquery/jquery/1.10.1/jquery-debug",
            "tip": "arale/tip/1.2.2/tip"
        }
    });
    seajs.use("./js/main");
</script>
</body>
</html>
define(function (require, exports, module) {

    var Tip = require("tip");
    var t = new Tip({
        trigger: '#test',
        content: '<div style="padding:10px">我是内容 我是内容</div>',
        arrowPosition: 10
    });

});

我的代码没报错,但是效果貌似没出来
鼠标到test的div的时候,为什么看不到提示,提示貌似在left:1920的地方出来了。。

Image of Yaktocat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant