麻烦看下,怎样设置垂直
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
/*此处写代码*/
.bg{
width:1100px;
height:100px;
background:#000;
margin:0 auto;
}
.div1{
color:#fff;
float:right;
position:relative;
}
.div1 li{
display:inline-block;
margin-right:40px;
font-size:22px;
margin-top: 18px;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="bg">
<img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png"/>
<div class="div1">
<ul>
<li>课程</li>
<li>职业路径</li>
<li>实战</li>
<li>猿问</li>
<li>手记</li>
</ul>
</div>
</div>
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星