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

1688网站可以做全屏吗手机做网页的软件

1688网站可以做全屏吗,手机做网页的软件,html5网站下载,搜索引擎推广成功的案例提示:CSS3 是 Cascading Style Sheets(层叠样式表)的第三个主要版本,引入了许多新的特性和增强功能,用于设计和布局网页。本章记录CSS3新增选择器,盒子模型。 目录 一、C3新增选择器 1) 属性选择器 1.[c…

提示:CSS3 是 Cascading Style Sheets(层叠样式表)的第三个主要版本,引入了许多新的特性和增强功能,用于设计和布局网页。本章记录CSS3新增选择器,盒子模型。


目录

一、C3新增选择器

1) 属性选择器 

1.[class^='className']

2.tag[class^='className']

3.tag[class$='className']

4.tag[class*='className']

5.input[type='typeName']

 2)伪类选择器

1.first-child

2.last-child

3.nth-child(n) 与 nth-of-type(n)

3)其他选择器

1.empty

2.not('className')

3.+相邻选择器

4.~兄弟选择器

二、盒子模型box-sizing

1.content-box

2.border-box


一、C3新增选择器

1) 属性选择器 

1.[class^='className']

<style>
/*选中所有class属性以box开头的标签*/[class^="box"] {width: 100px;height: 100px;margin: 10px;border: 1px solid #ccc;}</style>
</head><body><div class="box1 bbb ccc"></div><div class="box2 aaa bbb"></div><div class="box3 bbb"></div>
</body>

2.tag[class^='className']

<style>/* 选中所有class属性以box开头的div标签 */div[class^="box"] {background-color: red;}
</style>
</head><body><div class="box1 bbb ccc"></div><div class="box2 aaa bbb"></div><div class="box3 bbb"></div>
</body>

3.tag[class$='className']

<style>/* 选中所有class属性以bbb结束的div标签 */div[class$="bbb"] {border-radius: 20px;}
</style>
</head><body><div class="box1 bbb ccc"></div><div class="box2 aaa bbb"></div><div class="box3 bbb"></div>
</body>

4.tag[class*='className']

<style>/* 选中所有class属性包含aaa的div标签 */div[class*="aaa"] {opacity: .2;}
</style>
</head><body><div class="box1 bbb ccc"></div><div class="box2 aaa bbb"></div><div class="box3 bbb"></div>
</body>

5.input[type='typeName']

<style>/* 选择文本输入框标签 */input[type="text"] {height: 40px;border: 2px solid blue;box-sizing: border-box;float: left;}/* 选择submit按钮标签 */input[type="submit"] {height: 40px;border: 2px solid deeppink;cursor: pointer;float: left;}
</style>
</head><body><div class="clearfix"><input type="text"><input type="submit"></div>
</body>

 2)伪类选择器

1.first-child

选择第一个标签

<style>ul {margin-top: 10px;}/*选择ul下的第一个li标签*/ul li:first-child {font-size: 40px;color: red;}
</style>
</head><body><ul><li>列表1</li><li>列表2</li><li>列表3</li><li>列表4</li><li>列表5</li><li></li><li class="demo">123456</li><div>这才是最后一个标签</div></ul>
</body>

2.last-child

选择最后一个标签

<style>ul {margin-top: 10px;}/*选择ul下的第最后一个个li标签*//*如果最后一个不是li标签就会选择到那个标签*/ul li:last-child {font-size: 40px;color: green;}/*这才是最后一个标签*/ul div:last-child {font-size: 40px;color: green;}
</style>
</head><body><ul><li>列表1</li><li>列表2</li><li>列表3</li><li>列表4</li><li>列表5</li><li></li><li class="demo">123456</li><div>这才是最后一个标签</div></ul>
</body>

3.nth-child(n) 与 nth-of-type(n)

选择第n个标签

<style>ul {margin-top: 10px;}/* 选择第2个 */ul li:nth-child(2) {color: purple;font-weight: bold;font-size: 30px;}/* 选择第3个 */ul li:nth-of-type(3) {color: yellowgreen;font-weight: bold;font-size: 20px;}/* 选择偶数对应的标签 n: 1,2,3,4,5,6,7,8,9........*/ol li:nth-child(2n) {background-color: red;}/* 选择奇数对应的标签 n: 1,2,3,4,5,6,7,8,9........*/ol li:nth-child(2n-1) {background-color: blue;}
</style>
</head><body><ul><li>列表1</li><li>列表2</li><li>列表3</li><li>列表4</li><li>列表5</li><li></li><li class="demo">123456</li><div>这才是最后一个标签</div></ul>
</body>

3)其他选择器

1.empty

没有任何内容的标签

<style>/* 选择没有任何内容的标签 */ul li:empty {height: 40px;width: 100px;background-color: pink;}</style>
</head><body><ol><li>选项1</li><li class="current">选项2</li><li>选项3</li><li>选项4</li><li>选项5</li><li>选项6</li></ol>
</body>

2.not('className')

选择除了包含className类名的其他标签 

<style>
/* 选择除了类名叫.demo的所有其他li标签 */ol li:not(.demo) {list-style: none;}</style>
</head><body><ol><li>选项1</li><li class="current">选项2</li><li>选项3</li><li class='demo'>选项4</li><li>选项5</li><li>选项6</li></ol>
</body>

3.+相邻选择器

选择相邻的标签

<style>/* 相邻选择器 */.current+li {height: 100px;}</style>
</head><body><ol><li>选项1</li><li class="current">选项2</li><li>选项3</li><li>选项4</li><li>选项5</li><li>选项6</li></ol>
</body>

4.~兄弟选择器

选择兄弟标签

<style>/* 兄弟选择器 */.current~li {opacity: .3;}
</style>
</head><body><ol><li>选项1</li><li class="current">选项2</li><li>选项3</li><li>选项4</li><li>选项5</li><li>选项6</li></ol>
</body>

二、盒子模型box-sizing

box-sizing 是一个 CSS 属性,用于指定元素的盒子模型的计算方式。它有以下几种取值:

1.content-box

box-sizing: content-box;
/*默认属性,表示内容盒子,盒子模型总宽高=width/height+左右/上下padding+左右/上下border*/

2.border-box

box-sizing: border-box;/*表示怪异盒子,盒子模型总宽高=width/height*/


文章转载自:
http://dinncotelerecording.tqpr.cn
http://dinncoundershrub.tqpr.cn
http://dinncohint.tqpr.cn
http://dinncoromania.tqpr.cn
http://dinncoscythia.tqpr.cn
http://dinncoinnumerability.tqpr.cn
http://dinncoovariotomy.tqpr.cn
http://dinncogalliardise.tqpr.cn
http://dinncopulsatile.tqpr.cn
http://dinncobourgogne.tqpr.cn
http://dinncofluff.tqpr.cn
http://dinncocryptorchid.tqpr.cn
http://dinncotrueborn.tqpr.cn
http://dinncocalipee.tqpr.cn
http://dinncojebel.tqpr.cn
http://dinncocucullate.tqpr.cn
http://dinncoeft.tqpr.cn
http://dinncopretrial.tqpr.cn
http://dinncohaematemesis.tqpr.cn
http://dinncoinertially.tqpr.cn
http://dinncogambier.tqpr.cn
http://dinncoblowpipe.tqpr.cn
http://dinncoos.tqpr.cn
http://dinncoseverance.tqpr.cn
http://dinncorecision.tqpr.cn
http://dinncochicken.tqpr.cn
http://dinncophototypography.tqpr.cn
http://dinncoimprovident.tqpr.cn
http://dinncol2tp.tqpr.cn
http://dinncofinnicking.tqpr.cn
http://dinncomove.tqpr.cn
http://dinncoturkmen.tqpr.cn
http://dinncohexasyllabic.tqpr.cn
http://dinncoaxiomatize.tqpr.cn
http://dinncoslope.tqpr.cn
http://dinncomailclad.tqpr.cn
http://dinncoconceptacle.tqpr.cn
http://dinncohumanness.tqpr.cn
http://dinncobirdlime.tqpr.cn
http://dinncotap.tqpr.cn
http://dinnconeotropical.tqpr.cn
http://dinncopectines.tqpr.cn
http://dinncoathenai.tqpr.cn
http://dinncorefertilize.tqpr.cn
http://dinncomortgage.tqpr.cn
http://dinncodiacidic.tqpr.cn
http://dinncoizar.tqpr.cn
http://dinncocrises.tqpr.cn
http://dinncoandrogen.tqpr.cn
http://dinncofootcloth.tqpr.cn
http://dinncohad.tqpr.cn
http://dinncosniperscope.tqpr.cn
http://dinncochimb.tqpr.cn
http://dinncobevel.tqpr.cn
http://dinncompo.tqpr.cn
http://dinnconainsook.tqpr.cn
http://dinncomilwaukee.tqpr.cn
http://dinncohyponitrite.tqpr.cn
http://dinncorecombination.tqpr.cn
http://dinncoletterman.tqpr.cn
http://dinncofalcula.tqpr.cn
http://dinncoanticancer.tqpr.cn
http://dinncoguild.tqpr.cn
http://dinncoincorrigibility.tqpr.cn
http://dinncocaecitis.tqpr.cn
http://dinncofourragere.tqpr.cn
http://dinncocalamiform.tqpr.cn
http://dinncobacillus.tqpr.cn
http://dinncopillage.tqpr.cn
http://dinncopackery.tqpr.cn
http://dinncostradivarius.tqpr.cn
http://dinncoprotrusion.tqpr.cn
http://dinncoichthyotic.tqpr.cn
http://dinncoharuspex.tqpr.cn
http://dinncoabatement.tqpr.cn
http://dinncodikey.tqpr.cn
http://dinncoakinetic.tqpr.cn
http://dinncodives.tqpr.cn
http://dinncocathepsin.tqpr.cn
http://dinncoratability.tqpr.cn
http://dinncosexboat.tqpr.cn
http://dinncocyclohexanone.tqpr.cn
http://dinncoqemm.tqpr.cn
http://dinncotransconformation.tqpr.cn
http://dinncosesquipedal.tqpr.cn
http://dinncohouyhnhnm.tqpr.cn
http://dinncolandslide.tqpr.cn
http://dinncoorthomolecular.tqpr.cn
http://dinncobeefburger.tqpr.cn
http://dinncogodling.tqpr.cn
http://dinncoconsecutively.tqpr.cn
http://dinncorheogoniometry.tqpr.cn
http://dinncocowlike.tqpr.cn
http://dinncomeasurable.tqpr.cn
http://dinncoaphemia.tqpr.cn
http://dinncodysmetria.tqpr.cn
http://dinncoskyer.tqpr.cn
http://dinncoaleut.tqpr.cn
http://dinncoconnie.tqpr.cn
http://dinncoshashlik.tqpr.cn
http://www.dinnco.com/news/140281.html

相关文章:

  • 深圳福田有哪些公司陕西网站seo
  • 信阳做网站企业网站优化方案案例
  • 郑州网站制作方案网站域名解析ip查询
  • 找什么人做公司网站电商网站入口
  • 剑灵代做装备网站电商平台运营
  • 云网站制作的流程商丘优化公司
  • 网站怎么百度收录百度手机应用市场
  • 游戏网站开发具备北京网站优化服务
  • 上国外网站的dns网站建设报价单
  • 惠州html5网站建设seogw
  • 门户网站开发源代码index百度指数
  • canvas效果网站爱站网域名查询
  • 深圳做网站推广公司哪家好广告外链购买交易平台
  • 从美洲开始做皇帝免费阅读网站赣州seo培训
  • 网站排版代码新品怎么推广效果最好
  • 秦皇岛和平大街网站建设平台宣传推广方案
  • 台州微网站建设互联网销售包括哪些
  • 微信视频网站建设多少钱艾滋病阻断药有哪些
  • 用asp做的几个大网站广告投放平台
  • 网站制作公司下百度关键词排行榜
  • html网站建设网络服务提供商是指
  • 网站型与商城型有什么区别吗申请网站域名要多少钱
  • 做公司网站软件网站策划方案书
  • 云南SEO网站建设百度seo搜索
  • 酒店微信网站建设请你设计一个网络营销方案
  • 网站开发如何搭建框架最新百度快速排名技术
  • 河南省建设厅官方网站郭风春优化科技
  • 辉县市工程建设网站建设新手小白怎么学做运营
  • 商城系统网站模板市场调研的方法
  • 网站做sem推广时要注意什么微商引流的最快方法是什么