前端基础知识点
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>新聞列表</title><style>.box{margin: 0 auto;width: 450px;height: 300px;box-sizing: border-box;padding: 15px 12px;border :1px solid red;background-color: #eee;/*邊框 框的寬度 框的線樣式 顏色*/}.box1{border-bottom: 2px solid black;}ul{margin-top: 12px;margin-left: 12px;border: 1px dashed blue;}.box2{line-height:36px;padding-left: 60px;border-bottom: 1px dashed blue;}</style>
</head>
<body>
<div class="box"><div class="box1"><h2>最新文章/New Articles</h2></div><div class="box2">北京招聘網(wǎng)頁設(shè)計,平面設(shè)計,php</div><div class="box2">體驗javascript的魅力</div><div class="box2">jquery世界來臨</div><div class="box2">網(wǎng)頁設(shè)計師的夢想</div><div class="box2">jquery中的鏈?zhǔn)骄幊淌鞘裁?lt;/div>
</div>
</body>
</html>`<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>.box1{background-color: #cccccc;padding: 30px 15px;width: 240px;height: 360px;box-sizing: border-box;/*新盒膜類型*/color:white;margin: 0 auto;/**/}.box2{width:210px;height: 60px;padding: 15px;box-sizing:border-box;font-size: 20px;}span{float: right;/*行內(nèi)元素的本質(zhì)是文本但塊內(nèi)元素的本質(zhì)不是文本 */}</style>
</head>
<body>
<div class="box1" align="conter"><div class="box2"><img src="img/1.png" alt="" >菜譜大全<span> > </span></div><div class="box2"><img src="img/2.png" alt="" >食材大全<span> > </span></div><div class="box2"><img src="img/3.png" alt="" >品質(zhì)珍選<span> > </span></div><div class="box2"><img src="img/4.png" alt="" >專題專區(qū)<span> > </span></div><div class="box2"><img src="img/5.png" alt="" >一起紅<span> > </span></div>
</div>
</body>
</html>`
總結(jié)
- 上一篇: html5基础知识点制作图片
- 下一篇: 前端基础选择器