鱼C论坛

 找回密码
 立即注册
查看: 2823|回复: 1

[已解决]原来是下面的div不显示 现在搞得整个网页啥都不显示

[复制链接]
发表于 2020-2-12 12:59:22 | 显示全部楼层 |阅读模式

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

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

x
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4.     <meta charset="UTF-8">
  5.         <style type="text/css>
  6.            div.one
  7.            {
  8.               border-style:solid;
  9.                   border-width:1px;
  10.                   border-color:#0000ff
  11.               margin-top:250px ;
  12.               width:500px;
  13.               margin-left:400px;
  14.               height:180px
  15.            }
  16.        div.two
  17.            {
  18.               border-style:solid;
  19.                   border-width:1px;
  20.                   border-color:#000
  21.               margin-top:500px ;
  22.               width:500px;
  23.               margin-left:400px;
  24.               height:180px
  25.            }
  26.         </style>
  27.        
  28. </head>
  29. <body>
  30.      <div class="one">
  31.          <form class="form-horizontal">
  32.              <label>用户名</label>
  33.              <input type="text" class="form-control" id="input1" value=""><br>
  34.              <label>留言内容</label>
  35.              <input type="text" class="form-control" id="input2" value=""><br>
  36.              <input type="submit"  value="发布"></input>
  37.          </form>
  38.          </div>
  39.      <div class ="two">
  40.          <p>这里咋不给我显示呢</p>
  41.      </div>

  42. </body>
  43. </html>
复制代码
最佳答案
2020-2-12 14:42:51
1、箭头所指处:
Snip20200212_336.png


补全:<style type="text/css">

里面的语法 10 和 20 少 ;

小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-2-12 14:42:51 | 显示全部楼层    本楼为最佳答案   
1、箭头所指处:
Snip20200212_336.png


补全:<style type="text/css">

里面的语法 10 和 20 少 ;

小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-5 11:49

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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