day06

A我今天学习到了什么

1温习day05的知识点
1.1 p:margin的一点漏洞问题
给子元素margin-top:父元素移动,子元素不移动
解决方案:1.给父元素overflow:hidden;
                  2.给父元素设置伪元素parent:before{content:'‘”;display:table}
上面的元素的margin-bottom和下面元素的margin-top会重合
//取两者的最大值
1.2一个登陆页面
<form >
    <p><label for="text">文本</label><input id="text" type="text"/></p>
//<label for="text">文本</label>特殊人员的照顾,指引
//"text"这个是input对话框的文本属性
    <p><label for="password">密码</label><input id="password" type="password"/></p>
//"password"这是input对话框的密码属性
    <p><input type="submit" value="登录"/></p>
//"submit"是input按钮的属性,value更改名
</form>

//定义和用法
<label> 标签为 input 元素定义标注(标记)。
label 元素不会向用户呈现任何特殊效果。不过,它为鼠标用户改进了可用性。
如果您在 label 元素内点击文本,就会触发此控件。
<label> 标签的 for 属性应当与相关元素的 id 属性相同。

1.3单选框
<!--单选框需给一样的“name”名-->
    <p>
        <label for="male">男</label><input id="male" type="radio" name="sex" value="男">
        <label for="female">女</label>
        <input id="female" type="radio" name="sex" value="女">
    </p>
1.4复合选框
<!--复合选框-->
    <p>
        <label>爱好</label>
        <input type="checkbox" name="爱好" value="游泳">游泳
        <input type="checkbox" name="爱好" value="开车">开车
    </p>
1.5下拉选框
<select>
            <option>洪山区</option>
            <option>青山区</option>
            <option>汉阳区</option>
</select>
1.6预选的下拉选框
<form action="">
<select>
            <option>洪山区</option>
            <option selected>青山区</option>
            <option>汉阳区</option>
        </select>
</form>
//在想要的option上加selected这个属性
1.7文本域
文本域
<textarea   placeholder="看点槽点,不吐不快!别憋着,马上大声说出来吧!"></textarea>
*****拓展
&nbsp空格 &lt<  &gt>

特殊案例

1.input 输入框

input type=”text”
         type=”submit”之间的区别
一个文本是content box,一个按钮是border box

2.display和visibility的区别

display:none;//块不存在
visibility:hidden;//只是隐藏起来了

3.讲解登录框下面的几个icon


image.png
//是背景图片的取图定位,左负右正background-position: -18px 0
2拓展day06的知识点
1.iframe
<iframe> 标签规定一个内联框架。
一个内联框架用来在当前 HTML 文档中嵌入另一个HTML文档
<iframe src="我的.html" frameborder="0"name="frame"></iframe>
<a href="test01.html" target="frame">test</a>
2.当遇到一个非文本的元素,想让其垂直居中用【定位】
3.内联元素一些奇怪的现象
:给button设置margin-top,span也跟着移动
<div>
   <button>btn</button>
   <span>深圳</span>
   <span>广州</span>
<div>
4.overflow:hidden;
隐藏溢出的部分

B我掌握了的

1.iframe
<iframe> 标签规定一个内联框架。
一个内联框架用来在当前 HTML 文档中嵌入另一个HTML文档
<iframe src="我的.html" frameborder="0"name="frame"></iframe>
<a href="test01.html" target="frame">test</a>
2.当遇到一个非文本的元素,想让其垂直居中用【定位】
3.内联元素一些奇怪的现象
:给button设置margin-top,span也跟着移动
<div>
   <button>btn</button>
   <span>深圳</span>
   <span>广州</span>
<div>
4.overflow:hidden;
隐藏溢出的部分

C我没有掌握的

<div class="one">
    ![](images/logo.png)
</div>
<div class="one1">
    <div class="one2">
        <ul class="tou">
            <li>深圳 <span>切换</span></li>
        </ul>
        <ul class="tou1">
            <li>个人中心</li>
        </ul>
        <span>首页</span>
        <span>资讯</span>
        <span>测评</span>
        <span>商城</span>
    </div>
</div>
<div class="box">
        <div class="box1">
            <a href="02用户主页.html"target="frame">用户中心首页</a>
            <ul>
                <li><span></span>我的检测</li>
                <li><a href="#">上门检测</a></li>
                <li><a href="#">DIY检测</a></li>
            </ul>
            <ul>
                <li><span></span>我的治理</li>
                <li><a href="#">上门治理</a></li>
            </ul>
            <ul>
                <li><span></span>我的装修</li>
                <li><a href="#">装修方案</a></li>
            </ul>
            <ul>
                <li><span></span>我的收藏</li>
                <li><a href="#">装修材料</a></li>
                <li><a href="#">净化产品</a></li>
                <li><a href="#">资讯</a></li>
                <li><a href="#">测评</a></li>
            </ul>
            <ul>
                <li><span></span>个人资料</li>
                <li><a href="#">个人资料</a></li>
                <li><a href="#">修改密码</a></li>
                <li class="bang"><a href="03微信分页.html" target="frame">绑定手机\微信</a></li>
            </ul>
            <ul>
                <li><span></span>积分管理</li>
                <li><a href="#">积分兑换</a></li>
                <li><a href="#">积分等级</a></li>
                <li><a href="#">积分任务</a></li>
            </ul>
        </div>
        <div class="box2">
            <iframe src="02用户主页.html" frameborder="0" name="frame"></iframe>
            <!--<iframe src="03绑定手机微信.html" frameborder="0" name="frame"></iframe>-->
        </div>
</div>
<div class="five">
    <div class="fiv">
        ![](images/footerLogo.png)
        <dl>
            <dt>为室内环境健康把好每一关</dt>
            <dd>家居医生致力于中国人的家居健康问题,通过专业的技术研究<br/>
和测评,倾力协助大众打造绿色,环保的人居生活环境。</dd>
        </dl>
        <div class="fiv1">
            <ul class="ul1">
                <li>关于我们</li>
                <li>联系我们</li>
                <li>加入我们</li>
            </ul>
            <ul class="ul1">
                <li>版权说明</li>
                <li>用户隐私</li>
                <li>免费申明</li>
            </ul>
            <ul class="ul2">
                <li class="l1">官方微信</li>
                <li class="l2">天猫旗舰店</li>
                <li class="l3">有攒商城</li>
            </ul>
        </div>
        <div class="fiv2"></div>
        <span class="di1">深圳建筑科学研究院股份有限公司</span>
        <span>家居医生网</span>
        <span class="di2">粤IPU备08011321号ⓒCopyright All Rights Reserved</span>
    </div>
</div>
*{
    margin: 0;
    padding: 0;
}
.one{
    text-align: center;
    background: #18bebe;
    box-sizing: border-box;
}
.one>img{
    width: 180px;
    height: 50px;
    padding: 10px 0;
}
.one1{
    background: #f3eff2;
    box-sizing: border-box;
}
.one2{
    text-align: center;
    width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.tou{
    float: left;
    padding-top: 10px;
}
.tou li{
    list-style-image: url("../images/location.png");
}
.tou1{
    float: right;
    padding-top: 10px;
}
.tou1 li{
    list-style-image: url("../images/adm.png");
    color: #FEA700;
}
.one2>span{
    line-height: 40px;
    font-size: 20px;
    padding: 0 40px;
}
.box{
    width: 1200px;
    margin: 10px auto;
}
.box1{
    width: 200px;
    height: 900px;
    background: #f0f0f0;
    text-align: center;
    margin-right: 10px;
    display: inline-block;
}
.box1>a{
    display: block;
    line-height: 75px;
    background: #dddddd;
    border-left: 3px solid #19bebe;
    text-decoration: none;
    color: #19bebe;
}
ul a{
    text-decoration: none;
    color: #666666;
}
.box1 li{
    list-style: none;
    text-align: left;
}
.box1 ul{
   margin-left: 60px;
    padding: 0 0 20px;
}
.box1 span{
    display: inline-block;
    width: 11px;
    height: 11px;
    background: url("../images/open.png");
    position: relative;
    right: 40px;
    margin-right: -10px;
}
.box2{
    float: right;
    background: #eeeeee;
}
iframe{
    width:980px;
    height:1000px;
    margin-left:5px;
    border:1px solid #eee;
}
.five{
    background:#515151;
    color: #ffffff;
    clear: both;
}
.fiv{
    width: 1200px;
    padding: 20px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}
.fiv>img{
    display: block;
    margin-left: 20px;
}
.fiv>dl{
    display: inline-block;
    margin-left: 20px;
}
.fiv dt{
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 20px;
}
.fiv dd{
    font-size: 16px;
}
.fiv1{
    display: inline-block;
    position: relative;
    left:80px;
}
.fiv1>ul{
    display: inline-block;
    margin-right: 100px;
}
.fiv1 .ul1{
    list-style: none;
}
.fiv1 .ul2{
    margin-left: 40px;
}
.fiv1 li{
    padding: 8px 0;
}
.ul2 .l1{
    list-style-image: url("../images/weixin2.png");
}
.ul2 .l2{
    list-style-image: url("../images/tianmao.png");
}
.ul2 .l3{
    list-style-image: url("../images/shop.png");
}
.fiv2{
    height: 2px;
    border-bottom: 1px solid #dddddd;
    margin: 10px 0;
}
.di1{
    margin:0 20px;
}
.di2{
    margin-left: 420px;
}
<style>
        *{margin: 0;padding: 0}
        .box{
            background-color: #EBEBEB;
            position: relative;
            height: 150px;
            border: 1px solid #E8E8E8;
        }
        .aa{
            width: 108px;
            height: 109px;
            border-radius: 50%;
            float: left;
            position: relative;
            left: 40px;
            top: 20px;
        }
        dl{
            float: left;
            position: relative;
            left: 45px;
            top: 30px;
        }
        dt{
            font-size: 20px;
            margin-bottom: 20px;
        }
        .box>span{
            width: 1px;
            height: 100px;
            border-left: 2px solid #dddddd;
            float: left;
            position: relative;
            left: 140px;
            top: 30px;
        }
        .cc{
            width: 300px;
            height: 150px;
            display: inline-block;
            position: relative;
            left: 200px;
            top: 60px;
        }
        .cc p{
            display: inline-block;
            position: absolute;
        }
        .cc a{
            margin-left: 5px;
            text-decoration: none;
            color: #19bebe;
        }
    </style>
</head>
<body>
<div class="box">
    ![](images/user.png)
    <dl>
        <dt>用户名</dt>
        <dd>积分值:198分</dd>
        <dd>我的消息:0条</dd>
    </dl>
    <span></span>
    <!--<div class="bb">-->

        <div class="cc">
            ![](images/weixin1.png)
            <p>微信绑定</p>
            <span>未绑定</span><a href="#">立即绑定</a>
        </div>

        <div class="cc">
            ![](images/phone.png)
            <p>手机号码绑定</p>
            <span>未绑定</span><a href="#">立即绑定</a>
        </div>
    <!--</div>-->
</div>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,088评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,715评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,361评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,099评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 60,987评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,063评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,486评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,175评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,440评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,518评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,305评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,190评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,550评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,880评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,152评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,451评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,637评论 2 335

推荐阅读更多精彩内容

  • A今天我学到了什么? 1.margin的问题 绝对路径和相对路径 登陆页面 单选框 复合选框 下拉选框 预选的下拉...
    余昌帅阅读 199评论 0 0
  • A今天学了什么 1.iframe 2.skill B我掌握好的地方 C我掌握不好的地方 1.iframe 2.skill
    执念念不直阅读 153评论 0 0
  • A:今天学到的内容 一、运用iframe实现两个页面 name 和 target 名必须是一样 1.当遇到一个非文...
    AnnQi阅读 105评论 0 0
  • 1 iframe 2 一些小问题 2.1.当遇到一个非文本的元素,想让其垂直居中用定位 2.2 内联元素一些奇怪的...
    yuxiaohu阅读 219评论 1 0
  • 那还是最天真的年纪 不经意的眼神交汇都要红着脸躲避 日记上都是你存在过的痕迹 白色墙壁藏着的都是有关你的秘密 那些...
    书晴sq阅读 324评论 12 10