Home > Web Front-end > HTML Tutorial > CSS代码求教:中如何使banner的jpg改为播放swf_html/css_WEB-ITnose

CSS代码求教:中如何使banner的jpg改为播放swf_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:39:22
Original
1170 people have browsed it

本帖最后由 jyone 于 2012-11-13 14:35:17 编辑

我抄了别人的一个网站。
网站中有一段CSS是指banner的背景图为3.jpg

我想把它的背景图由jpg换为动态的swf动画,swf是我做的,尺寸和jpg一样

源代码:
.banner{ background:url(3.jpg) no-repeat center top; height:230px;}
Copy after login



怎样改为3.swf呢?

回复讨论(解决方案)

css不能放flash做背景的
可以加个层虚拟一个出来,效果一样,多写一个层让他浮动起来 position:absolute,设置他坐标为负数z-index:-1;效果就一样了

干嘛用FLASH做背景 还真没见过这种额

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template