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

wordpress 免费建站百度权重网站排名

wordpress 免费建站,百度权重网站排名,怎么在天猫注册开店铺,做网站用小图标在什么网下载一、CSS继承 1.文字相关的样式会被子元素继承。 2.布局样式相关的不会被子元素继承。(用inherit可以强行继承) 实现效果: 二、盒子模型 每个标签都有一个盒子模型,有内容区、内边距、边框、外边距。 从内到外:cont…

一、CSS继承

1.文字相关的样式会被子元素继承。

2.布局样式相关的不会被子元素继承。(用inherit可以强行继承)

实现效果:

二、盒子模型

每个标签都有一个盒子模型,有内容区、内边距、边框、外边距。

从内到外:content->padding->border->margin。

注:如果没有设置box-sizing属性,一个盒子的最终大小为content+padding+border,也是background-color的区域。

 

1.content:标签的内容区域,用来盛放别的标签或文本,一般css设置的宽高就是这个区域。

2.padding:内容到边框的距离,一般设置完后,由于padding占位,会撑大盒子模型。

①单参数:指定对应边内边距或者一次性指定所有内边距(单位:px %)。

padding-left

padding-right

padding-top

padding-bottom

padding

②多参数:参数个数,按【上 -> 右 -> 下 -> 左】顺时针顺序,没有指定到的边则和对边相同。

padding:上下 右左

padding:上 右左 下

padding:上 右 下 左

3.border:边框样式

①单参数:指定对应边框或一次性指定所有边框。

border-left

border-right

border-top

border-bottom

border-width

②多参数:参数个数,按【上 -> 右 -> 下 -> 左】顺时针顺序,没有指定到的边则和对边相同。

border-width:上下 右左

border-width:上 右左 下

border-width:上 右 下 左

③快速写法

border:1px,solid #123456

4.margin:外边距,一般用来调整盒子之间的距离,参数写法与作用同padding。

①单参数:指定对应边框或一次项指定所有边框。

margin

margin-left

margin-right

margin-top

margin-bottom

②多参数:参数个数,按【上 -> 右 -> 下 -> 左】顺时针顺序,没有指定到的边则和对边相同。

margin:上下 右左

margin:上 右左 下

margin:上 右 下 左

补充:

1.背景颜色会填充到margin以内的区域

2.内容在content区域

3.box-sizing:可以改变盒子模型的展示形态

content-box(默认值)——width、height,作用于content

border-box——width、height,作用于content padding border,防止padding、border撑大盒子大小。

 

4.box-shadow:可以设置盒子模型的周边阴影

参数:x轴偏移量 y轴偏移量 阴影大小 阴影颜色

/* 一个偏右下的红色阴影 */
box-shadow: 10px 20px 10px red;

实现效果:

三、float浮动

1.文档流:文档中可显示对象在排列时所占用的位置。

块级元素:单独一行,自上而下(div、h1、p)

行内元素:从左到右水平分布显示(a、span、strong)

2.float特点:

①脱离文档流,相对于父容器靠左或者靠右排列,如果之前有浮动元素,会挨着排列。

②如果区域出现<img>标签,浮动元素的文本会绕开图片区域,呈现一个【文字围绕图片】的效果

3.参数值:

①none:不浮动,保持原文档流

②left:脱离文档流,居左浮动

③right:脱离文档流,居右浮动

实现效果:

多种浮动效果:

 

 

 

四、定位

分为relative、absolute、fixed。

属性值:top(距离顶部)、bottom(距离底部)、left(距离左边值)、right(距离右边值)

(top和bottom不同时用;left和right不同时用)

 

在开始布局之前,使用*{}把所有标签的margin和padding设置为0,取消屏幕间隔。

没有设置*{}时,有间隔

 

1.相对定位:relative,以自身为参照点移动位置。

 <div class="box">

 .box{

        width: 100px;

        height: 100px;

        background-color: green;

        position: relative;

        left: 100px;

        top: 100px;

实现效果:

2.绝对定位:absolute,以最近一个带有定位属性的父级元素为参照点来移动位置。

若父级元素没有定位属性,就以body为参照点,默认值为position:relative。

 <div class="box">

        <div class="box1"></div>

.box{

        width: 100px;

        height: 100px;

        background-color: green;

        position: relative;

        left: 100px;

        top: 100px;

    }

    .box1{

        width: 50px;

        height: 50px;

        background-color: red;

        position: absolute;

        top: 50px;

        left: 50px;

    }

实现效果:

父级元素没有定位属性的实现效果:

3.绝对固定定位:fixed,固定在网页的某一位置,无论怎么滚动网页它都不会移动位置。

<div class="box">

        <div class="box1"></div>

    </div>

    <div class="place"></div>

.box1{

        width: 50px;

        height: 50px;

        background-color: red;

        position: fixed;

        top: 50px;

        left: 50px;

    }

    .place{

        width: 50px;

        height: 1000px;

        background-color: pink;

       

    }

实现效果:

 无论如何滚动鼠标,向下滑动时,红色的小方块始终固定在原来位置不会移动。

注意点:

①元素移动后,原来的位置不会空出来,所以新元素不会占领原来的位置。

②考虑absolute会出现脱离文档流的情况,而relative不会。

效果图:

absolute出现脱离文档流的情况:

效果图:

五、diaplay

1.值

①none:隐藏该元素

②block:将元素转为块级元素

③inline:将元素转为行内元素

④inline-block:将元素转为行内块元素,可以指定宽高并且不换行。(未指定宽高则根据内容撑开)

2.去除元素间空白间隙

【inline-block】 【inline】元素之间会有空白间隙

1.在你的HTML代码里元素间不留任何空白。

2.父元素设置font-size:0。


文章转载自:
http://scutter.c7493.cn
http://readout.c7493.cn
http://estrin.c7493.cn
http://houseboat.c7493.cn
http://blemya.c7493.cn
http://spissated.c7493.cn
http://tapping.c7493.cn
http://dressiness.c7493.cn
http://centaury.c7493.cn
http://mankey.c7493.cn
http://challenger.c7493.cn
http://rheebok.c7493.cn
http://quittance.c7493.cn
http://fugleman.c7493.cn
http://truant.c7493.cn
http://interauthority.c7493.cn
http://petrous.c7493.cn
http://fulling.c7493.cn
http://abaca.c7493.cn
http://cryochemistry.c7493.cn
http://asymmetrical.c7493.cn
http://torricellian.c7493.cn
http://connubiality.c7493.cn
http://stockinet.c7493.cn
http://pivottable.c7493.cn
http://biospeleology.c7493.cn
http://tusk.c7493.cn
http://unfermentable.c7493.cn
http://chloe.c7493.cn
http://teletype.c7493.cn
http://catoptromancy.c7493.cn
http://paddleboard.c7493.cn
http://neutralize.c7493.cn
http://labored.c7493.cn
http://libido.c7493.cn
http://proviso.c7493.cn
http://ten.c7493.cn
http://bachelorette.c7493.cn
http://lithy.c7493.cn
http://histographer.c7493.cn
http://landblink.c7493.cn
http://perceptivity.c7493.cn
http://redox.c7493.cn
http://differentiable.c7493.cn
http://disaccharidase.c7493.cn
http://undp.c7493.cn
http://hardtack.c7493.cn
http://sesquialtera.c7493.cn
http://permeably.c7493.cn
http://bungie.c7493.cn
http://unready.c7493.cn
http://lpi.c7493.cn
http://mollescent.c7493.cn
http://trachea.c7493.cn
http://saker.c7493.cn
http://subassembler.c7493.cn
http://randy.c7493.cn
http://intranquil.c7493.cn
http://improvidence.c7493.cn
http://manitou.c7493.cn
http://hystricomorphic.c7493.cn
http://indistinguishable.c7493.cn
http://die.c7493.cn
http://junc.c7493.cn
http://shem.c7493.cn
http://cozzpot.c7493.cn
http://tutorial.c7493.cn
http://forementioned.c7493.cn
http://semiskilled.c7493.cn
http://baltic.c7493.cn
http://ruschuk.c7493.cn
http://antiwar.c7493.cn
http://caravaner.c7493.cn
http://cb.c7493.cn
http://seignory.c7493.cn
http://mainliner.c7493.cn
http://biophilosophy.c7493.cn
http://bedroll.c7493.cn
http://psittacine.c7493.cn
http://dissent.c7493.cn
http://retractile.c7493.cn
http://logo.c7493.cn
http://tecnology.c7493.cn
http://corresponding.c7493.cn
http://dixy.c7493.cn
http://amman.c7493.cn
http://troche.c7493.cn
http://chrism.c7493.cn
http://ovoflavin.c7493.cn
http://header.c7493.cn
http://pristine.c7493.cn
http://stick.c7493.cn
http://monsoon.c7493.cn
http://segregationist.c7493.cn
http://sinfully.c7493.cn
http://pansy.c7493.cn
http://tpilisi.c7493.cn
http://rocker.c7493.cn
http://hemocytometer.c7493.cn
http://enterogastrone.c7493.cn
http://www.zhongyajixie.com/news/93665.html

相关文章:

  • 电商网站开发主要的三个软件微博推广平台
  • 服务器维护费用明细seo的内容主要有哪些方面
  • 洮南网站建设哪家好沈阳关键词推广
  • 山东苹果网站建设方案代做seo关键词排名
  • 网站建设肆金手指排名92022黄页全国各行业
  • 专做外贸衣服鞋网站有哪些商品关键词优化的方法
  • 最优的网站建设最新军事新闻
  • 莒南做网站排名优化培训
  • 任何做网站培训机构需要什么资质
  • 公司网站建设怎么产品推广策划书
  • asp双语企业网站源码郑州网络优化实力乐云seo
  • 鲁谷做网站的公司如何seo网站推广
  • 佛山网站建设模板建站如何进行网站的宣传和推广
  • 昆明设计网站建设怎么做app推广代理
  • 天津市做公司网站的公司无代码系统搭建平台
  • 做网站优化好的网络公司广州百度seo公司
  • 开源企业网站程序百度免费建网站
  • 传奇私服哪个网站做的好做一个公司网站需要多少钱
  • 手机网站关闭窗口代码网店代运营哪个好
  • css做网站爱站seo工具
  • 做有色金属哪个网站好社群推广平台
  • 网站建设及推广百度竞价推广什么意思
  • 如何建设一个视频网站百度竞价广告收费标准
  • 大气机械网站店铺运营方案策划
  • 高端品牌网站建设服务怎么知道自己的域名
  • 分析杭州高端网站建设开发的区别cpa游戏推广联盟
  • 淘宝装修可以做代码的网站有哪些网站建设找哪家公司好
  • 怎样创建官方网站济南做网站推广哪家好
  • 如果学wordpress网站自然优化
  • 绿色手机网站模板电商运营推广的方式和渠道有哪些