当前位置: 首页 > news >正文

HTML练习题:彼岸的花(web)

展示效果:

代码:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>彼岸の花</title><style type="text/css">*{margin:0;padding:0;}body{background-color: #ededed;font-family: 楷体;font-size:16px;color: #a5a5a5;   /* 字体的颜色*/}.header{width:980px;margin:0 auto 7px;  /* 上外边距是0,水平居中,下划线距离正文是7px*/height:86px;  /*  盒子的高度*/line-height: 86px;   /* 文本的高度*/text-align: center;font-family: 微软雅黑;color: #a5a5a5;}/* .header h1{/* font-weight:normal; } */.header strong{font-weight:normal;font-size:30px;}.header em{font-weight: normal;font-style:normal;  /*格式恢复正常,不是斜体,添加它是为了方便调节大小的*/ font-size:14px;}.fenlei{width:980px;margin:0 auto;}.fenlei h2{font-size:14px;font-family: 微软雅黑;color: #a5a5a5;height:42px;line-height: 42px;}.fenlei p{font-size:30px;text-align:center;font-size:18px;}.bestseller{width:602px;margin:0 auto;}.bestseller .txt{line-height: 30px;text-indent: 2em;   /*首行缩进*/}.bestseller .txt em{font-style:normal;text-decoration: underline;}.shouhou{width:602px;margin:0 auto;font-family: 微软雅黑;text-align: center;font-size:16px;font-weight: bold;  /*加粗*/}.boss{width:602px;margin:0 auto;}.boss h3{height: 30px;line-height: 30px;font-family: 微软雅黑;font-size: 18px;font-weight: normal;text-indent: 2em;}.boss p{text-indent: 2em;font-style: italic;line-height: 26px;font-size:14px;}</style>
</head>
<body>
<!--标题模块-->
<div class="header"><h1><strong>彼岸の花</strong>&nbsp;&nbsp;<em>偏安一隅,静静生活</em></h1><hr size="2" color="#d1d1d1" width="980px">
</div>
<!--分类模块-->
<div class="fenlei"><h2>商品分类 ></h2><img src="banner.jpg" alt="网上花店"><br/> <br/>   <!--换行--><p>我喜欢一些花儿,静静地开放,从不声张。小小的花朵,有着异样的芬芳...</p> <br><p>I love flowers, quietly open, never quiet. Little flowers, with the same fragrance...</p><br />
</div>
<!--热卖模块-->
<div class="bestseller"><img src="bestseller1.png" alt=""><br> <br><img src="bestseller2.jpg" alt=""><br><br><p class="txt">多肉植物是指植物营养器官肥大的高等植物,<em>通常具根、茎、叶三种营养器官和花、果实、种子三种繁殖器官</em>。在园艺上,又称肉质植物或多肉花卉,但以多肉植物这个名称最为常用。</p><p class="txt"><em>全世界共有多肉植物一万余种</em>,它们绝大部分属于高等植物(绝大多数是被子植物)。植物上隶属几十个科,个别专家认为有67个科中含有多肉植物,但大多数专家认为只有50余科。</p><br>
</div>
<!--页脚模块-->
<div class="shouhou">品质保障&nbsp;&nbsp;|&nbsp;&nbsp;七天无理由退换货&nbsp;&nbsp;|&nbsp;&nbsp;特色服务体验&nbsp;&nbsp;|&nbsp;&nbsp;帮助中心<br> <br>
</div>
<div class="boss"><img src="tuxiang.gif" alt="网上花店" align="left"><h3>店主: Michael_唐僧</h3><p>飞舞的花儿像一首诗 ?写着秋天的心事 ?带着相思 ?轻轻、轻轻 ?飘向大地 ?</p><p>也许这只是秋季里的一场游戏 ?</p><br><br><br>
</div>
</body>
</html>

http://www.lryc.cn/news/472353.html

相关文章:

  • (蓝桥杯C/C++)——常用库函数
  • GPT-Sovits-2-微调模型
  • 【数据结构 | PTA】懂蛇语
  • Python——自动化发送邮件
  • MTKLauncher_布局页面分析
  • C#实现隐藏和显示任务栏
  • 基于springboot+vue实现的公司财务管理系统(源码+L文+ppt)4-102
  • rnn/lstm
  • 袋鼠云产品功能更新报告12期|让数据资产管理更高效
  • MATLAB——入门知识
  • C#从零开始学习(用户界面)(unity Lab4)
  • Axure PR 9 多级下拉清除选择器 设计交互
  • 分布式项目pom配置
  • 2. Flink快速上手
  • Java-I/O框架06:常见字符编码、字符流抽象类
  • 计算机网络-MSTP的基础概念
  • P1037 [NOIP2002 普及组] 产生数
  • 【分布式知识】分布式对象存储组件-Minio
  • 跨平台开发支付组件,实现支付宝支付
  • API 接口:为电商行业高效发展注入强劲动力
  • Golang的跨平台开发
  • txt数据转为pdf格式并使用base64解密输出
  • 鸿蒙开发-状态+判断+循环
  • 基于SSM网上招投标管理系统的设计
  • 「C/C++」C++ 设计模式 之 单例模式(Singleton)
  • WPF的行为(Behavior)
  • SpringBoot框架:闲一品交易平台的新突破
  • 关于AI绘画 | Stable Diffusion 技术专栏推荐文章
  • Oracle 第13章:事务处理
  • String的长度有限,而我对你的思念却无限延伸