当前位置:网站首页>淘宝宝贝页面制作
淘宝宝贝页面制作
2022-08-05 05:25:00 【Y-琼眸】
今天七夕节,想必都给自己对象买了礼物吧,可怜的我没有对象,我只爱代码!!你们给对象准备的礼物是不是很多在淘宝上买的,那么今天我们来搞点实际的东西。
学了这么久H5和C3,不做点实际的东西,啧,说不过去哈。那么今天我们来做一个简单的宝贝页面制作。下面这个就是我做的,可以简单看一下
这个页面的制作需要用到以下的知识点:网页框架构造、常用h5标签、字体样式、文本样式、盒子模型等等,盒子模型尤为重要。这些我前面的文章都有介绍,大家可以瞅瞅。
还是要说一下,咱们程序员一定要多敲代码,大家可以把这个东西当成一个小练习做做,毕竟熟能生巧嘛,说不定以后还能买到自己做的东西。
好了话不多说直接上代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>床</title>
<style>
a {
text-decoration: none;
color: black;
}
.box {
width: 600px;
height: 300px;
border: 2px solid transparent;
border-radius: 30px;
background-color: rgba(128, 128, 128, 0.15);
}
.box1 {
padding: 20px 20px;
margin-bottom: -290px;
}
.box2 {
margin-left: 300px;
}
span {
font: 600 25px cursive;
line-height: 28px;
}
.box2>img {
vertical-align: middle;
}
.box3 {
font-size: 14px;
color: red;
width: 75px;
border: orange 1px solid;
border-radius: 5px;
text-align: center;
}
.box4 {
margin-left: 300px;
margin-top: 100px;
}
.box4>span {
font-size: 30px;
color: red;
}
.box:hover {
box-shadow: 0 0 15px;
border: 2px solid #F5B899;
}
</style>
</head>
<body>
<a href="#">
<div class="box">
<div class="box1">
<img src="./床.webp" alt="" width="260px">
</div>
<div class="box2">
<img src="./七夕节.png" alt="" width="80px">
<span>航哥牌床上十件套,超级实惠,不买你妈买菜超级加倍!!</span>
<div class="box3">
不送运费险
</div>
</div>
<div class="box4">
<span>秒杀价¥99999</span>
<del>99999999</del>
</div>
</div>
</a>
</body>
</html>上面就是这个页面的全部代码了,大家可以看看,能跟我讨论一下就更好了。
补充两个知识点,上一篇没有讲
.box2 {
width: 100px;
height: 100px;
background-color: aqua;
border-bottom-right-radius: 100%;
/*圆角*/
}1.border-bottom-right-radius: ; 这个是设置盒子模型的圆角。
2.margin 外边距 指当前盒子和其他盒子之间的距离
外边距大小可正可负
margin-top 上边距 盒子正值向下 负值向上
right 右边距 默认时没有效果的
bottom 下边距 盒子自己不动挤下面盒子 正值下面盒子向下 负值向上
left 左边距 盒子正值向右 负值向左
简写 margin:;
也可以跟四个值 三个值 两个值 一个值
边栏推荐
- Nacos集群搭建
- Collection of error records (write down when you encounter them)
- scikit-image image processing notes
- 媒体查询、rem移动端适配
- Problems encountered in installing Yolo3 target detection module in Autoware
- BIO, NIO, AIO practical study notes (easy to understand theory)
- The size of the screen adaptation
- Email management Filter emails
- 邮件管理 过滤邮件
- selenium learning
猜你喜欢

disabledDate 日期选择器 datePicker
D45_Camera assembly Camera

DevOps - Understanding Learning

Cloud Computing Basics - Study Notes

Met with the browser page

Late night drinking, 50 classic SQL questions, really fragrant~
![[issue resolved] - jenkins pipeline checkout timeout](/img/3d/c14276d2b5ce18fc3d1288abb059c0.png)
[issue resolved] - jenkins pipeline checkout timeout

cs231n学习记录

云计算基础-学习笔记

Transformer详细解读与预测实例记录
随机推荐
Complete mysql offline installation in 5 minutes
selenium学习
[Problem has been resolved]-Virtual machine error contains a file system with errors check forced
What is Alibaba Cloud Express Beauty Station?
scikit-image image processing notes
H5开发调试-Fiddler手机抓包
七种让盒子水平垂直居中的方法
DisabledDate date picker datePicker
el-autocomplete use
数组&的运算
GetEnumerator method and MoveNext and Reset methods in Unity
The use of three parameters of ref, out, and Params in Unity3D
product learning materials
Met with the browser page
Dry!Teach you to use industrial raspberries pie combining CODESYS configuration EtherCAT master station
跨域的十种解决方案详解(总结)
文件内音频的时长统计并生成csv文件
Next-Generation Parsing Technology - Cloud Parsing
js 使用雪花id生成随机id
Problems encountered in installing Yolo3 target detection module in Autoware