鱼C论坛

 找回密码
 立即注册
查看: 3703|回复: 4

[已解决]字体,边框都没有变化,不知问题在哪

[复制链接]
发表于 2017-8-26 21:02:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
字体,边框都没有变化,不知问题在哪
最佳答案
2017-8-26 21:25:50
不是解决了么???
  1. <style type="text/css">
  2.                                 html,body{
  3.                                         height: 100%;
  4.                                         color: #FF0088;
  5.                                         font-family: sans-serif;

  6.                                        
  7.                                 }
  8.                                 body{
  9.                                                 background: url(H_0334.jpg) center center;
  10.                                                 background-size:  cover;
  11.                                                 margin: 0;
  12.                                                 padding: 0;
  13.                                                 position: relative;
  14.                                                 
  15.                                 }
  16.                                 #container{
  17.                                                 width: 100%;
  18.                                                 text-align: center;
  19.                                                 position: absolute;
  20.                                                 top: 50%;
  21.                                                 transform: translateY(-50%);
  22.                                                                 }
  23.                                                 h1{
  24.                                                         font-size: 78px;
  25.                                                         margin-bottom: 22px;
  26.                                                                                                 }
  27.                                                 p{
  28.                                                         font-size: 33px;
  29.                                                         margin-bottom: 22px;
  30.                                                 }
  31.                                                 a{
  32.                                                         font-size: 88px;
  33.                                                         background: #33FFFF;
  34.                                                         color: #999;
  35.                                                         border: 1px solid #33FFF;
  36.                                                         border-radius: 10px;
  37.                                                         padding: 10px 66px;
  38.                                                         text-decoration: none;
  39.                                                         
  40.                                                 }
  41.                         </style>
复制代码
QQ图片20170826210024.png
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2017-8-26 21:25:50 | 显示全部楼层    本楼为最佳答案   
不是解决了么???
  1. <style type="text/css">
  2.                                 html,body{
  3.                                         height: 100%;
  4.                                         color: #FF0088;
  5.                                         font-family: sans-serif;

  6.                                        
  7.                                 }
  8.                                 body{
  9.                                                 background: url(H_0334.jpg) center center;
  10.                                                 background-size:  cover;
  11.                                                 margin: 0;
  12.                                                 padding: 0;
  13.                                                 position: relative;
  14.                                                 
  15.                                 }
  16.                                 #container{
  17.                                                 width: 100%;
  18.                                                 text-align: center;
  19.                                                 position: absolute;
  20.                                                 top: 50%;
  21.                                                 transform: translateY(-50%);
  22.                                                                 }
  23.                                                 h1{
  24.                                                         font-size: 78px;
  25.                                                         margin-bottom: 22px;
  26.                                                                                                 }
  27.                                                 p{
  28.                                                         font-size: 33px;
  29.                                                         margin-bottom: 22px;
  30.                                                 }
  31.                                                 a{
  32.                                                         font-size: 88px;
  33.                                                         background: #33FFFF;
  34.                                                         color: #999;
  35.                                                         border: 1px solid #33FFF;
  36.                                                         border-radius: 10px;
  37.                                                         padding: 10px 66px;
  38.                                                         text-decoration: none;
  39.                                                         
  40.                                                 }
  41.                         </style>
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2017-8-26 21:37:26 | 显示全部楼层
楼主的h1,p和a标签都写在#container里了怎么?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-8-27 10:41:37 | 显示全部楼层
ba21 发表于 2017-8-26 21:25
不是解决了么???

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

使用道具 举报

 楼主| 发表于 2017-8-27 10:42:29 | 显示全部楼层
alltolove 发表于 2017-8-26 21:37
楼主的h1,p和a标签都写在#container里了怎么?

恩,刚开始是写在#container里了,拿出来后就正常显示了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 03:32

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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