日期:2014-05-18  浏览次数:20424 次

网页 滚动文字
一个图片做背景
然后图片的左边   出现滚动的文字

我的写法   达不到效果
<marquee       behavior= "scroll "       direction=up       scrollDelay=80       scrollamount= "2 "       onmouseover= "this.stop() "       onmouseout= "this.start() "   style= "background-image:   url(imagehead/head.jpg);   background-attachment:   fixed;   width:   681px;   background-repeat:   repeat;   height:   146px;   background-color:   transparent;   text-align:   left; ">    
<%--     <%=strNews%>     --%>    
    文本啊文本
    这是什么问题   如果文本非常长的话   就到图片的右边了   我只要它在左边的一块滚动哦
    </marquee>

------解决方案--------------------
SF
------解决方案--------------------
先SF 在看
------解决方案--------------------
BD
------解决方案--------------------
已经有人SF了
------解决方案--------------------
我和高歌来的目的一样
------解决方案--------------------
问题不会,可以接分么
------解决方案--------------------
问题不会,可以接分么

------解决方案--------------------
UPUPUPUP
------解决方案--------------------
问题不会的不能接分~!


我是专门来接分~!
------解决方案--------------------
<marquee behavior= "scroll " direction=up scrollDelay=80 scrollamount= "2 " onmouseover= "this.stop() " onmouseout= "this.start() " style= "background-image: url(imagehead/head.jpg); background-attachment: fixed; width: 681px; text-align: left; ">
</marquee>


------解决方案--------------------
<div style= "width:200px;height:100px;background-image: url(imagehead/head.jpg);background-color:red " align= "left " valign= "top ">
<marquee behavior= "scroll " direction=up scrollDelay=100 scrollamount= "2 " onmouseover= "this.stop() " onmouseout= "this.start() " >

<div style= "width:50%;height:100%;background-color:#ffffff "> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> sdfsfdsdf <br /> </div>

</marquee>
<div style= "width:50%;height:100%;background-color:#dddddd; left: 50%; position: relative;top:-20% "> </div>
</div>

具体的自己调整下内容