滚动和div标签位置和li标签的相对定位,并进行重叠

来源:互联网 发布:cf录视频软件 编辑:程序博客网 时间:2024/05/29 08:38
                            <marquee direction="left" behavior="SCROLL" scrollamount="10" scrolldelay="200" style="position:absolute;left:130px; top:0px;">
                                <p style="color:red;font-size:2em;height:40px;line-height:60px;">
                                   这里是滚动的文字
                                </p>

                            </marquee>


                                    <div  style="width:450px;height:124px;float:right;position:absolute;left:390px; top:27px;">
                                        <ul style="height: 124px;list-style-type:none">
                                            <li value="我的社区" style="background: url('images/xt_green/wdsq_gd.png') no-repeat scroll 0 0 transparent;height:86px;float:left;width:146px;cursor:pointer;" onclick="javascript:YAHOO.AIP.showYnnyxxIndex('我的社区','<s:property value="cId"/>');hidePoint();saveCtr('我的社区');"></li>
                                            <li value="二维码" style="background: url('images/xt_green/smdt.gif') no-repeat scroll 0 0 transparent;height:86px;float:left;width:146px;cursor:pointer;" onclick="javascript:YAHOO.AIP.showGsnyxxIndex('二维码','<s:property value="cId"/>');hidePoint();saveCtr('二维码');"></li>
                                        </ul>
                                    </div>




                                    <div  style="width:450px;height:124px;float:right;position:absolute;left:700px; top:97px;">
                                        <ul style="height: 124px;list-style-type:none">
                                            <li id="ywsd_li" value="要闻" style="background: url('images/xt_green/ywsd_show.png') no-repeat scroll 0 0 transparent;height:86px;float:left;width:146px;cursor:pointer;position:absolute;left:11px;" onclick="ywsdShow()"></li>
                                            <li id="qykj_li" value="科技" style="background: url('images/xt_green/kjqy_hid.png') no-repeat scroll 0 0 transparent;height:86px;float:left;width:146px;cursor:pointer;position:absolute;left:147px;" onclick="qykjShow()"></li>
                                        </ul>

                                    </div>



原创粉丝点击