扁平化设计,博客网站(四)

接着上一次我想设计一个新闻滚动条,这样我们可以看到一些网站特别迫切需要浏览者看到的信息,简洁明了
我使用marque来写,因为marque自导滚动效果,而且滚动方式可以根据css特性来设置

<div id="container">
				<section class="section1">
					<div class="ad">
						<img src="img/guangbo.png" >
						<marquee behavior="" direction="">欢迎来到香江小海涛博客网站</marquee>
					</div>
				</section>
			</div>

css:

*{
	margin: 0;
	padding: 0;
	color: #696969;
}
#wrapper {
	background-color: #CCCCCC;
}

#wrapper>header {
	background-color: hsl(215, 100%, 55%);
	width: 100%;
	height: 150px;

	display: -webkit-box;
	display: -moz-box;
	/* -moz-box-pack: center;
	-webkit-box-pack: center; */
	position: relative;
}

#wrapper>header .logo {
	font-family: "db";
	color: white;
	font-size: 20px;
}

#wrapper>header>h1 {
	color: white;
	/* 
	 */
	margin: auto;
	display: -webkit-box;
	display: -moz-box;
	-moz-box-align: center;
	-webkit-box-align: center;
	transition-duration: 3s;
	cursor: pointer;

	text-shadow: purple 5px 3px 1px;

}

#wrapper>header>h1:hover {
	left: 10px;
	transform: translateX(50px);

	text-shadow: blueviolet 14px 7px 10px;



}

/* 导航栏 */
#wrapper>nav {

	background-color: dimgrey;
	height: 65px;


}

#wrapper>nav ul {
	/* border: 1px solid forestgreen; */
	max-width: 960px;
	margin: auto;
	/* display: inline-block; */

	/* height: 65px; */
	position: relative;
}

#wrapper>nav li {
	display: inline-block;
	height: 45px;
	line-height: 45px;
	padding: 10px;
	max-width: 80px;
	/* border: 1px solid forestgreen; */
	text-align: center;


}

#wrapper>nav li:hover,
.item_active {
	background-color: cadetblue;
	text-shadow: brown 2px 2px 5px;
}

#wrapper>nav>ul a {
	color: white;
	text-decoration: none;
	font-size: 20px;





}

/* 查找按钮 */
#wrapper>nav>ul button {

	border-width: 0;
	background-color: transparent;
	position: absolute;
	/* padding-top: 20px; */
	background-image: url(../img/lookup3.png);
	width: 32px;
	height: 32px;
	top: 17px;
	cursor: pointer;
}

#wrapper>nav>ul button:hover {
	/* background-color: #8A2BE2; */
	background-image: url(../img/lookup4.png);
}


/* 开始正文模块 */

#wrapper>#container {
	max-width: 960px;
	/* background-color: #ccc; */
	margin: auto;
	/* border: 1px solid forestgreen; */
}
#wrapper>#container>.section1>.ad{
	background-color: #FFFFFF;
	box-shadow: gray 3px 3px 10px ;
	padding: 5px;
}

/* #wrapper>nav button>img{
	width: 30px;
	height: 30px;
	/* padding-top: 5px; */





/* #wrapper>nav>a{
	text-decoration: none;
	color: white;
	font-size: 30px;
	margin: auto;
	text-align: center;
	padding: 10px;
	
}
#wrapper>nav>a:hover{
	text-shadow: brown 2px 2px 5px;
	background-color:hsl(225,100%,55%);
} */
/* 版权模块 */
#wrapper>footer{
	max-width: 960px;
	margin: auto;
}
#wrapper>#container>.section1>.ad img{
	margin-right: 10px;
	/* margin-top: 3px; */
}
#wrapper>#container>.section1>.ad>marquee{
	max-width: 900px;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值