如何从html页面的一侧调用数据到另​​一侧 [英] How to call data from one side of html page to other side

查看:94
本文介绍了如何从html页面的一侧调用数据到另​​一侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是HTML的新手,所以想要专家的帮助。

我准备了一个HTML页面。

一边我有一张鼠标贴图函数。

我的要求是当我将光标移到地图上时,相关信息应出现在页面的剩余部分。

我使用下面的代码来分割页面

 <   div     style   = 浮动:左;宽度:80%; >  
有些文字
< div style = float:right; width:20%; >
一些文字< / div > < / div >

解决方案



只是假设diva拥有你的地图并且divb拥有你的信息,现在你已经设置了你的样式表像这样的悬停效果。

 divb  
{
float right;
width 20%;
text-aligh right;
top 10 0; // 根据您的需要和坐标编辑此行代码
left 500; < span class =code-comment> // 根据您的需要和坐标编辑此代码行
position 绝对值;
}


I am new to HTML so want some help form the experts.
I have prepared a HTML page.
One one side I am having a map with mouse over function.
My requirement is when I move my cursor over the map, related info should appear on the remaining half of the page.
I have used following code to split the page

<div style="float:left; width:80%;">
Some text
<div style="float:right; width:20%; ">
some text</div></div>

解决方案

hi,
Just assumed that "diva" having your map and "divb" having your information now you have set your stylesheet on hover effect like this.

.divb
{
float:right;
width:20%;
text-aligh:right;
top:100;//Edit this line of code as per your need and co-ordinates
left:500;//Edit this line of code as per your need and co-ordinates
position:absolute;
}


这篇关于如何从html页面的一侧调用数据到另​​一侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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