div层定位帮助中的Javascript按钮
我目前有一个div层,其中包含一些javascript(用于显示按钮)。我正试着把它放在相对于屏幕右侧的网页上——我该怎么做?我现在有这样的东西:div层定位帮助中的Javascript按钮,javascript,button,html,positioning,Javascript,Button,Html,Positioning,我目前有一个div层,其中包含一些javascript(用于显示按钮)。我正试着把它放在相对于屏幕右侧的网页上——我该怎么做?我现在有这样的东西: <div id="LiveChat_1308239999" style=" top:500; right:500; position: absolute; "><script type="text/javascript"> var __lc_buttons = __lc_button
<div id="LiveChat_1308239999" style="
top:500;
right:500;
position: absolute;
"><script type="text/javascript">
var __lc_buttons = __lc_buttons || [];
__lc_buttons.push({
elementId: 'LiveChat_1308239999',
language: 'en',
skill: '0'
});
变量uu lc_按钮=u lc_按钮| |[];
__lc_按钮({
elementId:'LiveChat \'U 1308239999',
语言:"en",,
技能:“0”
});
(顺便说一句,我确实关闭了脚本和div,但它不会显示在这里)
但它仍然显示在我屏幕的左上角。您缺少单位,浏览器不知道500是500px、500em还是500%:
<div id="LiveChat_1308239999" style="
top:500px;
right:500px;
position: absolute;
">`
`
您缺少单位,浏览器不知道500是500px、500em还是500%:
<div id="LiveChat_1308239999" style="
top:500px;
right:500px;
position: absolute;
">`
`
指定位置值时需要使用单位:
top: 500px;
right: 500px;
另外,将右值指定为500将使其位于右侧的左侧500px-这是您想要的吗?指定位置值时需要使用单位:
top: 500px;
right: 500px;
另外,将右值指定为500将使其位于右侧的左侧500px,这是您想要的吗