Rolling ad CSS layout_html/css_WEB-ITnose
Studyed CSS layout and CSS fixed window, and designed a scrolling advertisement on this basis.
Attach the code first: (using jquery-1.7-min)
<html><head><title>CSS布局及滚动广告</title><style>#my_windows{margin-left:2%;margin-top:20%;width:6%;height:20%;position:fixed;background-color:yellow;}#container{width:80%;height:200%;margin:0 auto;/*设置整个容器在浏览器中水平居中*/background-color:yellow;}#header{height:20%;background-color:blue;}#content{height:60%;background:#0FF;margin-top:20px;}#content_left{height:80%;width:25%;margin:3%;background:#90C;float:left;}#content_right{height:80%;width:63%;margin:3%;background:#90C;float:left;}#Footer{ height:16%; background:#90C; margin-top:20px;}.clear{clear:both;}</style><script type="text/javascript" src="jquery-1.7.1.min.js"></script><script>$(document).ready(function(){ $("#adds").css({"margin-top":"140px"}); setInterval("manytime()",2000);});function manytime(){ var mytest=$("#adds"); mytest.show(); mytest.css({"margin-top":"140px"}); mytest.animate({"margin-top":"0px"},1000,function(){mytest.hide()});}</script></head><body><div id="my_windows"><p id="adds">广告</p></div><div id="container"> <div id="header">头部 </div> <div id="content"> <div id="content_left">左侧</div> <div id="content_right">右侧</div> </div> <div class="Clear"></div> <div id="footer">脚本</div></div></body></html>
Thanks for the blog post http://www.kwstu.com/ArticleView/divcss_2013929173533658 CSS layout technology support

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...
