CSS border样式作业
大灰狼2019-07-07 11:26:18266<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>css边框样式</title>
<style type="text/css">
.box{
width: 300px;
height: 300px;
line-height: 100px;
text-align: center;
border: 8px solid red;
border-bottom: 10px dashed green;/*虚线*/
}
.box2{
height: 150px;
border: 75px solid green;
border-top-color: goldenrod;
border-bottom-color: rosybrown;
background: url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1562479659360&di=1e2928bbd850885e910d10f4dc99c679&imgtype=0&src=http%3A%2F%2Fpic48.nipic.com%2Ffile%2F20140911%2F19291311_210229153000_2.jpg);
background-size:210px;
</style>
</head>
<body>
<div class="box">
<div class="box2"></div>
</div>
</body>
</html>