首页 > 其他分享 >html第三次

html第三次

时间:2023-03-17 21:45:12浏览次数:35  
标签:f40 right 第三次 color price html font size

运行效果:

 

 代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>淘宝购物页</title>
<style>
.goods{
width: 220px;
height: 360px;
border: 1px solid #fff;
position: relative;
}
.price{
margin-left: 5px;
margin-right: 5px;
}
.price>span{
line-height: 20px;
vertical-align: middle;
}
.price>span:first-child{
color: #f40;
font-size: 20px;
font-weight: bold;
}
.price>span:nth-child(2){
font-size: 12px;
background-color: #f40;
color: white;
padding-left: 1px;
padding-right: 1px;
}
.price>span:last-child{
float: right;
font-size: 12px;
color: #888;
}
.des{
margin-left: 5px;
margin-right: 5px;
}
.des>a{
color: #444;
font-size: 12px;
text-decoration: none;
}
.des>a:hover{
text-decoration: underline;
color: #f40;
}
.tongshi{
width: 220px;
color: white;
background-color: #f40;
text-align: center;
display: none;
position: absolute;
}
.goods :hover .tongshi{
display: block;
}
</style>
</head>
<body>
<div class="container">
<div class="goods">
<img src="D:/Download/1.jfif"/>
<div class="tongshi">找同款|找相似</div>
<div class="price">
<span>¥34.1元</span>
<span>包邮</span>
<span>1万+人购买</span>
</div>
<div class="des">
<a href="#">今天开始我要自己上厕所</a>
</div>
</div>
</div>
</body>
</html>

标签:f40,right,第三次,color,price,html,font,size
From: https://www.cnblogs.com/EchoQ12/p/17228264.html

相关文章

  • HTML5是什么?怎么学习HTML5?
    HTML5是什么?HTML5是什么?相信这个问题并不容易回答,大多数人对于HTML5的概念仅仅是听说过而已,非要让他说出个所以然来,结果只能让你失望。相比普及了近十四年的HTML4来......
  • HTML--基本的表格布局
    <!DOCTYPEhtml><html>  <head>  <title>基本的表格布局</title>  <linkrel="stylesheet"href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7......
  • HTML+CSS
    HTML(HyperTextMarkupLanguage)前言软件架构B/S​ Browser/Server网站C/S​ Client/Server QQHTML的简介、发展史:万维网联盟(W3C)维护。包含HTML内容的......
  • HTML--<small>
    <!DOCTYPEhtml><html><head><title>666</title><linkrel="stylesheet"href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min......
  • html5知识点:CSS盒模型
    一、 CSS层叠在前端程序员对CSS编写的过程中,CSS选择器的作用是用来选中某个元素,并对当前的元素进行样式上的渲染,那么每一个选择器都有属于自己的一些解析规则。那我们今天......
  • 1 初识HTML
    1初识HTML1.1什么是HTMLHyperTextMarkupLanguage(超文本标记语言)超文本包括:文字、图片、音频、视频、动画等1.2HTML发展史1.2.1HTML5的优势1.世界知名......
  • HTML中的表格的基本结构与常用属性
    1、表格的基本结构首先看看图下<table>标签的布局                                    ......
  • HTML5新增标签
    HTML5新增标签 HTML5是HTML最新的修订版本,2014年10月由万维网联盟(w3c)完成标准制定在HTML5出现之前,我们一般采用DIV+CSS布局我们的页面.但是这样的布局方式不仅使......
  • HTML+css轮播图效果
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-wid......
  • Day02 2.2、HTML基础之表单标签
    二、表单标签是HTML中最终的标签之一,主要是提供了输入框或按钮等标签提供给用户进行交互输入数据。将来表单可以提交到指定服务端程序中进行数据处理。1form标签......