首页 > 其他分享 >第七章 课后习题

第七章 课后习题

时间:2024-10-25 22:46:40浏览次数:3  
标签:product 课后 color border item 第七章 10px 习题 margin

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>翡翠阁</title>
	<style type="text/css">
		body {
		    font-family: 'Arial', sans-serif;
		    background-color: #f4f4f4;
		    margin: 0;
		    padding: 0;
		}
		 
		.container {
		    width: 80%;
		    margin: 0 auto;
		    padding: 20px;
		    text-align: center;
		    background-color: white;
		    border-radius: 10px;
		    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		}
		 
		h1 {
		    font-size: 2em;
		    color: #4CAF50;
		    margin-bottom: 20px;
		}
		 
		.product-grid {
		    display: grid;
		    grid-template-columns: repeat(4, 1fr);
		    gap: 20px;
		}
		 
		.product-item {
		    background-color: #fff;
		    padding: 10px;
		    border: 1px solid #ddd;
		    border-radius: 5px;
		    text-align: center;
		    transition: transform 0.3s ease;
		}
		 
		.product-item img {
		    width: 100px;
		    height: 100px;
		    object-fit: cover;
		}
		 
		.product-item p {
		    margin: 10px 0;
		    font-size: 1em;
		    color: #333;
		}
		 
		.product-item:hover {
		    transform: scale(1.05);
		    border-color: #4CAF50;
		}
	</style>
</head>
<body>
    <div class="container">
		<h1>翡翠阁</h1>
		<img src="img/cap.jpg" alt="翡翠阁">
        <div class="product-grid">
            <div class="product-item">
                <img src="img/li1.jpg" alt="毒爱项链">
                <p>毒爱项链子</p>
                <p>¥1500元</p>
            </div>
            <div class="product-item">
                <img src="img/li2.jpg" alt="羊脂玉戒">
                <p>羊脂玉戒子</p>
                <p>¥2300元</p>
            </div>
            <div class="product-item">
                <img src="img/li3.jpg" alt="紫玉手镯">
                <p>紫玉手镯</p>
                <p>¥2880元</p>
            </div>
            <div class="product-item">
                <img src="img/li4.jpg" alt="牛头翡翠">
                <p>牛头美玉</p>
                <p>¥999元</p>
            </div>
            <div class="product-item">
                <img src="img/li5.jpg" alt="毒爱挂件">
                <p>毒爱挂件</p>
                <p>¥1800元</p>
            </div>
            <div class="product-item">
                <img src="img/li6.jpg"alt="毒爱蝴蝶扣">
                <p>毒爱蝴蝶扣</p>
                <p>¥3500元</p>
            </div>
            <div class="product-item">
                <img src="img/li7.jpg" alt="翡翠耳坠">
                <p>翡翠耳坠</p>
                <p>¥2380元</p>
            </div>
            <div class="product-item">
                <img src="img/li8.jpg" alt="毒爱白金">
                <p>毒爱白金镯子</p>
                <p>¥9999元</p>
            </div>
        </div>
    </div>
</body>
</html>

 

标签:product,课后,color,border,item,第七章,10px,习题,margin
From: https://blog.csdn.net/2402_83184791/article/details/143208074

相关文章

  • C语言程序设计:现代设计方法习题笔记《chapter5》上篇
    第一题        题目分析:程序判断一个数的位数可以通过循环除以10求余,通过计算第一次与10求余为0的次数计算位数,由此可得示例1代码,另一种思路根据提示,可得示例2代码。代码示例1:#include<stdio.h>intmain(){ printf("Enteranumber:"); intnumber,temp; sc......
  • Java基础第五天(实训学习整理资料(五)练习题)
    目录1、百钱买百鸡2、搬砖问题3、(循环)**求水仙花数。4、完数5、费波那契,兔子数列6、打渔还是晒网1、百钱买百鸡(for循环)*“百钱买百鸡”是我国古代的著名数学题。题目这样描述:5文钱可以买1只公鸡,3文钱可以买一只母鸡,1文钱可以买3只小鸡。用100文钱买100只鸡......
  • 构建更加丰富的页面 习题答案<HarmonyOS第一课>
    一、判断题1. Tabs组件可以通过接口传入一个TabsController,该TabsController可以控制Tabs组件进行页签切换。正确(True)错误(False)正确(True)回答正确2. WebviewController提供了变更Web组件显示内容的接口,例如可以使用loadData来加载一个网页链接地址改变Web组件的......
  • 刷c语言练习题12(牛客网)
    1、在上下文和头文件正常的情况下,以下代码输出的值是:12345678910111213int x = 4;void incre() {    static int x = 1;    x *= x + 1;    printf("%d", x);}int _tmain(int argc, _TCHAR *argv[]) {    int i;......
  • 第七章作业1
    利用CSS技术,结合表格和列表,制作并美化“翡翠阁”页面<!DOCTYPEhtml><html> <head> <metacharset="utf-8"> <title>翡翠阁</title> <styletype="text/css"> .wz{ height:100px; line-height:100px; text-a......
  • 23~24 炼石计划 NOIP 练习题部分题解
    目录目录第1组JOISC2017火车旅行IOI2018会议CF1558FStrangeSortAPIO2018新家CTSC2017密钥CF1748EYetAnotherArrayCountingProblem第2组NOI2016区间LOJ552MIN&MAXIJOISC2023合唱LOJ542序列划分LOJ560Menci的序列P8978中位数第3组USACO20FEBHelpYourse......
  • 利用数组处理批量数据之习题
    用筛选法求100以内的素数//用筛选法求100以内的素数#include<stdio.h>intmain_6__1(void){ intarr[101]={0}; for(inti=0;i<101;i++)//赋值 arr[i]=i; arr[0]=arr[1]=-1;//挖掉 for(inti=0;i<100;i++) { if(-1==arr[i])//被挖......
  • 操作系统 第三章 第一节(王道计算机操作系统+课后习题提炼)
    本文是对王道计算机408操作系统+王道2025操作系统考研复习指导部分的提炼总结,个人心得,包含视频内容和课后习题的提炼.本人是26届408考生,本文属于考研复习的笔记,会持续更新~建议搭配视频和指导书食用~~视频课请看王道计算机考研408操作系统本文是操作系统第三章第一......
  • 习题5.4
    习题5.4代码importnumpyasnpimportmathfromscipy.optimizeimportminimize,Boundsdeffunc(x):returnsum(math.sqrt(x[i])foriinrange(100))defcon(x):return1000-np.sum(x[i]*(101-i+1)foriinrange(100))con1={'type':'ineq......
  • 循环结构程序设计之习题
    输入两个正整数m和n,求其最大公约数和最小公倍数//输入两个正整数m和n,求其最大公约数和最小公倍数#include<stdio.h>intmain(void){ intm,n,iMax,iMin,iGcd; scanf("%d%d",&m,&n); if(m>n) { iMax=m; iMin=n; } else { iMax=n; ......