为了账号安全,请及时绑定邮箱和手机立即绑定

无法显示边框

nav
{
	background-color:#ccc;
	height: 50px;
}
 
#banner
{
	background-color:#777;
	height: 500px;
}
 
nav ul 
{
	list-style: none;
	margin: 0px;
	float: right;
}

nav ul li,nav .logo
{
	display: inline-block;
	line-height: 50px;
	margin-right:20px ;
}
 
nav ul li a
{
	line-height: 50px;
	text-decoration: none;
	display: inline-block;
	height: inherit;
	color: aliceblue;
}
 

.inner
{   
	max-width: 300px;
	text-align: center;
	margin: auto;
	position: relative;
	top: 150px;
}

#banner .inner h1
{
	margin: 10px;
}

button
{
	border: none;
	background-color: red;
	color: aliceblue;
	padding: 5px 16px;
}

.sub-ss
{
	line-height: 30px;
}

#banner .inner .more
{
	margin-top: 140px;
}
.logo a
{
	letter-spacing: 3px;
	font-size: 16px;
	font-weight: 800;
	color:aliceblue;
	float: left;
	text-decoration: none;

}
.logo
{
	padding-left: 10px;
}	
.inner hr
{
  color: aqua;
  margin-bottom: 0px;
 margin-top: 0px;
}

.greensection
{    height: 400px;
	text-align: center;
	background-color: cornflowerblue;
	color: aliceblue;
}
.hr
{
	width: 100%;
	height: 1px;
	
	margin: 20px auto;
}

.greensection .hr
{
	width: 50%;
	background-color: aliceblue;
}
.greensection .wrapper h2
{margin: 0px;}

.wrapper
{
	max-width: 1050px;
	margin: 0px auto;
	padding: 100px;
	
}

.sub-code
{
	font-size:18px ;
}
 
 .greensection .icon-group .icon
 {
 	display: inline-block;
 	width: 70px;
 	height: 70px;
 	background-color:cadetblue;
 	transform: rotate(45deg);
 	margin: 30px;
 	
 }
 
.icon-group
{
	margin-top: 40px;
}
.grey-section
{
	background-color:darkslategray;
	color: aliceblue;
}
.grey-section .img-preview
{ 
	width: 30%;
	
}

.img-preview img
{
	width: 100%;
	
}
img
{
	width: 70px;
	height:250px;
	
}
.grey-section .text-preview
{
   width: 70%;
}
.article-preview > div
{
	float: left;
	font-size: 0;
}
.article-preview:after
{
	content: '';
	display: block;
	clear: both;
}
.article-preview:nth-child(odd)
{
	background-color: rgba(255,255,255,0.05);
}
.text-preview
{position: relative;
  top: 60px;
  left:60px;
	
}
.text-preview h2
{
	margin-bottom: 20px;
}
.text-preview p
{
	font-size: 18px;
	letter-spacing: 1px;
}
.text-preview .sub-code
{
	font-size: 20px;
}

.purple-section
{
	background-color:darkslateblue;
	padding:  80px;
	color:#fff ;
}
.purple-section .heading-wrapper 
{
	text-align: center;
}
.heading-wrapper .hr
{
	background-color: mediumblue;
	width: 60%;
}
.clearfix:after
{
	content: '';
	display: block;
	clear: both;
}

.card
{ padding:50px;
	width: 50%;
	min-height: 300px;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 2px solid white;
}


正在回答

1 回答

兄弟,你的border呢,定义边框要写border:1px soild black;

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
HTML5和CSS3扁平化风格博客
  • 参与学习       86787    人
  • 解答问题       406    个

HTML5与CSS3搭建超酷扁平化风格博客

进入课程

无法显示边框

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号