多语言展示
当前在线:1879今日阅读:103今日分享:49

左右固定顶部可收缩的全屏广告代

左右固定顶部可收缩的全屏广告代
工具/原料

adobe dreamweaver

方法/步骤
1

准备好需要用到的图标。

2

新建html文档。

3

书写hmtl代码。

网页主体内容区域
        

左右固定顶部可收缩的全屏广告代码,中间广告位在5秒之后,自动收起。左右固定顶部可收缩的全屏广告代

4

书写css代码。body { background: #101010; color: #fff; font-family: 'Microsoft YaHei', 'Tahoma', 'SimSun'; font-size: 12px }a { color: #0096ff; outline: none }a:hover { text-decoration: underline }a:active { outline: none }img { border: none; }.content { margin: 0 auto; background: #202020; padding: 15px 10px; width: 982px }.ad_left, .ad_right { display: block; position: fixed; width: 445px; height: 865px; top: 0; text-decoration: none; outline: 0 }.ad_left { margin: 0 0 0 -455px }.ad_right { margin: 0 0 0 992px }.ad_midd { width: 1002px; margin: 0 auto; overflow: hidden; height: 300px; position: relative; clear: both }.contentad { width: 982px; padding: 0 10px; margin: 0 auto }.btm { margin: 30px auto }.btm p { font: normal 12px/24px 'Microsoft YaHei'; text-align: center }

5

书写并添加js代码。‍

6

代码整体结构。

7

查看效果。

推荐信息