第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

我的圖標(biāo)為什么不能居中顯示

<!DOCTYPE?html>
</html>
<html>
<head>
	<title>
		css導(dǎo)航
	</title>
	<meta?charset="utf-8">
	<meta?http-equiv="X-UA-compatible"?content="IE=edge">
	<meta?name="viewport"?content="width=device-width"?initial-scale="1"?>
	<link?rel="stylesheet"?type="text/css"?href="css/style.css">
	<link?rel="stylesheet"?type="text/css"?href="css/font-awesome.min.css">
</head>
<body>
	<div?class="nav">
		<ul>
			<li><a?class="tooltip?tooltip-effect-1"?href="#">Home<span?class="tooltip-content"><i?class="icon-home"></i></span></a></li>
			<li><a?class="tooltip?tooltip-effect-2"?href="#">About?me<span?class="tooltip-content"><i?class="icon-user"></i></span></a></li>
			<li><a?class="tooltip?tooltip-effect-3"?href="#">Photography<span?class="tooltip-content"><i?class="icon-camera-retro"></i></span></a></li>
			<li><a?class="tooltip?tooltip-effect-4"?href="#">Work<span?class="tooltip-content"><i?class="icon-briefcase"></i></span></a></li>
			<li><a?class="tooltip?tooltip-effect-5"?href="#">Contact<span?class="tooltip-content"><i?class="icon-envelope"></i></span></a></li>
		</ul>
	</div>
<body>
</html>
html{
	width:100%;
	height:100%;
	text-size-adjust:none;
}
body{
	margin:0;
	padding:0;
	width:?100%;
	height:?100%;
	background:?#47c9af;
	color:?#74777b;
	font-weight:?300;
	font-size:?1.5em;
	font-family:?"Raleway","Arail";
}
ul{
	list-style:?none;/*去掉列表符號(hào)*/
	margin:?0;
	padding:?0;
}
a:link,a:visited,a:focus{
	text-decoration:?none;
	outline:?none;
}
*,*:before,*:after{
	box-sizing:?border-box;
}
*:before,*:after{
	display:?block;
	content:?"";
}
*:after{
	clear:?both;
}
.nav{
	width:?800px;
	height:?300px;
	margin:?200px?auto;
}
.nav?li{
	display:?inline-block;
	margin:?0?30px;
}
.tooltip{
	display:?inline-block;
	position:?relative;
	font-weight:?700;
	color:?rgba(0,0,0,0.5);
}
.tooltip-content{
	position:?absolute;
	z-index:?9999;
	bottom:?100%;
	width:?80px;
	height:?80px;
	border-radius:?100%;
	background:?snow;
	left:?50%;
	margin-left:-40px;
	margin-bottom:20px;?
	text-align:center;
	padding-top:-25px;?
	color:?#47c9af;
}
.tooltip-content:after{
	height:?20px;
	width:?30px;
	content:?"";
	display:?block;
	background:?url(tooltip1.svg)?no-repeat?center?center;
	position:?absolute;
	top:100%;
	left:?50%;
	margin:-8px?0?0-15px;
}

已經(jīng)設(shè)置了text-align:center了

正在回答

1 回答

.tooltip-content{} 里面改padding-top:25px;

padding是不允許使用負(fù)值的

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

我的圖標(biāo)為什么不能居中顯示

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)