手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >调用265天气预报,不显示链接
调用265天气预报,不显示链接
摘要:1、首先做一个5*5的透明GIF文件,保存在“image”文件夹2、建一个“weather”HTM文件,代码如下:天气预报document....

1、首先做一个5*5的透明GIF文件,保存在“image”文件夹

2、建一个“weather”HTM文件,代码如下:

<html>

<head>

<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">

<title>天气预报</title>

<styletype="text/css">

<>

</style>

<scriptlanguage="JavaScript"type="text/JavaScript">

document.oncontextmenu=newFunction('event.returnValue=false;');

document.onselectstart=newFunction('event.returnValue=false;');

//以上是禁止鼠标右键

<>

</script>

</head>

<bodybgcolor="#FFF9EE">

<divid="Layer1"style="position:absolute;width:175px;height:54px;z-index:1;left:0;top:0;"><imgsrc="image/weather.gif"alt="天气预报"width="190"height="54"></div>

<iframesrc="http://weather.265.com/weather.htm"width="190"height="54"frameborder="0"marginwidth="0"marginheight="0"scrolling="no"name="I1"></iframe>

</body>

</html>

3、调用代码:

<iframesrc="weather.htm"width="190"height="54"frameborder="0"marginwidth="0"marginheight="0"scrolling="no"></iframe>

这样就OK了。。。。

【调用265天气预报,不显示链接】相关文章:

如何处理div+css布局左右浮动问题

ul里面如何让li居中不用FLAOT改为display:inline可实现

CSS3属性box-shadow使用教程

css中background-size属性使用介绍

css初学者:id和class的选择

CSS控制DIV绝对定位、相对定位的技巧

5种方法立刻写出更好的CSS代码

DIV+CSS创建三栏网页布局方法介绍

CSS3之边框多颜色Border-color属性使用

利用CSS同比例缩小图片技巧

精品推荐
分类导航