CSS板塊練習代碼

來源:互聯網
上載者:User

標籤:style   color   io   ar   strong   sp   div   on   代碼   

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
.main{
width: 400px;
height: 500px;
background-color: #eee;
padding: 20px;
font-family: Arial;
}
.div1,.div2,.div3{
/*width: 400px;*/
height: 120px;
background-color:#fa1;
}
.div2,.div3{
margin-top: 20px;
}
.div1>img{
/*width: 150px;*/
float: left;
/*margin-top: 100px;*/
}
.div1>div{
width: 240px;
height: 92%;
background-color: #faa;
float: right;
padding-top: 10px;
padding-left: 10px;
}
.div1>div>h5{
font: 18px Arial;
margin: 0px;
}
.div1>div>p{
width: 210px;
margin: 0px;
/*overflow: hidden;*/
word-break:break-all;
padding-bottom: 4px;
border-bottom:1px solid #bbb;
}
.samll{
width: 90%;
height: 35px;
background-color: #fff;
}
.samll>strong{
font-size: 24px;
font-weight: 900;
float: left;
margin-top: 3px;
}
.sp{
padding: 4px 9px;
background-color: #A3C809;
border-radius: 3px;
margin-left: 39px;
float: left;
margin-top: 5px;
cursor: pointer;
}
.sp span{
padding: 0px 6px;
font-weight: bolder;
background-color: #567611;
border-radius:100%;
color: #fff;
float: left;
}
.samll span button{

}
</style>
</head>
<body>
<div class="main">
<div class="div1">
<img src="1.jpg">
<div>
<h5>KIch 好的呵呵</h5>
<p>fbefhuriewhgiouergbouierbhuiotbo
jkewqflu</p>
<div class="samll">
<strong>1248$</strong>
<a href="www.djkewcfu.com" class="sp"><span>i</span></a>
</div>
</div>
</div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</div>
</body>
</html>

CSS板塊練習代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.