网站设计基础教程||阶段案列9.4||通过JS实现背景图片切换

本教程介绍了如何利用JavaScript基础实现网页背景图片的动态切换效果,适用于进阶的网站设计学习者。通过简单的代码示例,读者可以了解到JavaScript在控制CSS属性方面的应用。
摘要由CSDN通过智能技术生成
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>阶段案例9.4|21305雷文涛|</title>
		<style type="text/css">
		*{margin: 0; padding: 0;list-style: none;}
			.div-bj{
				margin: 0px auto;
				margin-top: 10%;
				width: 75%;
				height: 600px;
				box-sizing: border-box;
				
			}
			.div-yuan{
				display: inline-block;
				width: 80px;
				height: 80px;
				border-radius: 40px;
				/* background-color: orange; */
				margin: 33px;
				border: 2px solid white;
				z-index: 120;
				position:relative;
				top: 300px;
				left: 9%;
			}
			.div-yuan:hover{
				cursor: pointer;
				transition: 0.3s;
				width: 70px;
				height: 70px;
				margin: 37px;
				border-radius: 36px;
				border: 3px solid red;
			}
			.div-zi{
				display: inline-block;
				width: 120px;
				height: 92px;
				border-radius:10px;
				background-color: darkgreen;
				font-size: 20px;
				line-height: 120px;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值