鱼C论坛

 找回密码
 立即注册
123
返回列表 发新帖
楼主: 不二如是

[庖丁解牛] 0 0 0 8 - CSS样式文件

[复制链接]
发表于 2021-2-3 15:44:41 | 显示全部楼层
css:
  1. @charset "utf-8";

  2. html, body {
  3.         height: 100%;
  4.         color: #FF0088;
  5.         font-family: "华康少女文字W5";
  6. }

  7. h1 {
  8.         font-size: 66px;
  9.         margin-bottom: 22px;
  10. }

  11. p {
  12.         font-size: 33px;
  13.         margin-bottom: 22px;
  14. }

  15. a {
  16.         font-size: 55px;
  17.         background: #33FFFF;
  18.         color: #FFF;
  19.         border: 1px solid #33FFFF;
  20.         border-radius: 10px;
  21.         padding: 10px 66px;
  22.         text-decoration: none;
  23. }

  24. body {
  25.         background: url(12.jpg) center center;
  26.         background-size: cover;
  27.         margin: 0;
  28.         padding: 0;
  29.         position: relative;
  30. }
  31.                
  32. #container {
  33.         width: 100%;
  34.         text-align: center;
  35.         position: absolute;
  36.         top: 50%;
  37.         transform: translateY(-50%);
  38. }
复制代码


html:
  1. <!DOCTYPE html>
  2. <html>
  3.         <head>
  4.                 <meta charset="utf-8">
  5.                 <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.                 <title>我的HTML世界</title>
  7.                 <link rel="stylesheet" href="styles.css" type="text/css">
  8.         </head>
  9.         <body>
  10.                 <div id="container">
  11.                         <h1>我爱鱼C</h1>
  12.                         <p>www.fishc.com - 让编程改变世界</p>
  13.                         <a href="http://bbs.fishc.com">传送门</a>
  14.                 </div>
  15.         </body>
  16. </html>
复制代码


3657.png
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2021-8-23 18:05:11 | 显示全部楼层
五好青年:
不会唱歌
不会打麻将
不会抽烟
不会喝酒
不会泡妞

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-27 14:55

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表