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

网站开发中用什么安全性比性比较高福建建设资格执业注册管理中心网站

网站开发中用什么安全性比性比较高,福建建设资格执业注册管理中心网站,眼镜商城网站建设方案,网站服务运营队伍与渠道建设提示#xff1a;CSS3 是 Cascading Style Sheets#xff08;层叠样式表#xff09;的第三个主要版本#xff0c;引入了许多新的特性和增强功能#xff0c;用于设计和布局网页。本章记录CSS3新增选择器#xff0c;盒子模型。 目录 一、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[typetypeName] 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 /headbodydiv classbox1 bbb ccc/divdiv classbox2 aaa bbb/divdiv classbox3 bbb/div /body 2.tag[class^className] style/* 选中所有class属性以box开头的div标签 */div[class^box] {background-color: red;} /style /headbodydiv classbox1 bbb ccc/divdiv classbox2 aaa bbb/divdiv classbox3 bbb/div /body 3.tag[class$className] style/* 选中所有class属性以bbb结束的div标签 */div[class$bbb] {border-radius: 20px;} /style /headbodydiv classbox1 bbb ccc/divdiv classbox2 aaa bbb/divdiv classbox3 bbb/div /body 4.tag[class*className] style/* 选中所有class属性包含aaa的div标签 */div[class*aaa] {opacity: .2;} /style /headbodydiv classbox1 bbb ccc/divdiv classbox2 aaa bbb/divdiv classbox3 bbb/div /body 5.input[typetypeName] style/* 选择文本输入框标签 */input[typetext] {height: 40px;border: 2px solid blue;box-sizing: border-box;float: left;}/* 选择submit按钮标签 */input[typesubmit] {height: 40px;border: 2px solid deeppink;cursor: pointer;float: left;} /style /headbodydiv classclearfixinput typetextinput typesubmit/div /body 2)伪类选择器 1.first-child 选择第一个标签 styleul {margin-top: 10px;}/*选择ul下的第一个li标签*/ul li:first-child {font-size: 40px;color: red;} /style /headbodyulli列表1/lili列表2/lili列表3/lili列表4/lili列表5/lili/lili classdemo123456/lidiv这才是最后一个标签/div/ul /body 2.last-child 选择最后一个标签 styleul {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 /headbodyulli列表1/lili列表2/lili列表3/lili列表4/lili列表5/lili/lili classdemo123456/lidiv这才是最后一个标签/div/ul /body 3.nth-child(n) 与 nth-of-type(n) 选择第n个标签 styleul {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 /headbodyulli列表1/lili列表2/lili列表3/lili列表4/lili列表5/lili/lili classdemo123456/lidiv这才是最后一个标签/div/ul /body 3)其他选择器 1.empty 没有任何内容的标签 style/* 选择没有任何内容的标签 */ul li:empty {height: 40px;width: 100px;background-color: pink;}/style /headbodyolli选项1/lili classcurrent选项2/lili选项3/lili选项4/lili选项5/lili选项6/li/ol /body 2.not(className) 选择除了包含className类名的其他标签  style /* 选择除了类名叫.demo的所有其他li标签 */ol li:not(.demo) {list-style: none;}/style /headbodyolli选项1/lili classcurrent选项2/lili选项3/lili classdemo选项4/lili选项5/lili选项6/li/ol /body 3.相邻选择器 选择相邻的标签 style/* 相邻选择器 */.currentli {height: 100px;}/style /headbodyolli选项1/lili classcurrent选项2/lili选项3/lili选项4/lili选项5/lili选项6/li/ol /body 4.~兄弟选择器 选择兄弟标签 style/* 兄弟选择器 */.current~li {opacity: .3;} /style /headbodyolli选项1/lili classcurrent选项2/lili选项3/lili选项4/lili选项5/lili选项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://www.tj-hxxt.cn/news/142735.html

相关文章:

  • 网站备案号信息网站建设是前端吗
  • 哪个网站比较好私域电商平台
  • 餐饮网站模板织梦网站搜索页点击返回首页没有反应
  • 做图软件下载官方网站山西省建设工程信息网站
  • 公司做网站seo方法图片
  • 运营什么网站好服务外包公司
  • 怎么把网页放到网站上奥远科技网站建设流程
  • 郑州做品牌网站好的公司网站开发 运行及维护
  • 网站建设哪个公司江岸区建设局网站
  • 小白如何搭建个人网站重庆app定制软件开发
  • 网站风格定位有哪些彩票网站代理怎么做
  • 网站开发策划书怎么写火炬开发区网站建设
  • co域名哪些网站永定门网站建设
  • 有本地服务器怎么做网站云南网站建设方法
  • 网站建设 标书安全员资格证书查询网
  • xml文件里做网站超链接中国设计网官网图标
  • 网站搭建是哪个岗位做的事儿做响应式网站需要学哪些知识
  • 如何做网站资讯ppt模板怎么套用
  • 企业网站静态模板网站后门清除
  • 军事新闻头条最新消息网站自动seo
  • 花都建设网站淅川微网站开发
  • dede网站前台没有图片网页版微信手机版
  • 国外做储物柜的网站saas商城系统
  • 网站建设的公司怎么收费网站开发手机端
  • 吉林省住房建设安厅网站wordpress 存档页面
  • 友点企业网站管理系统模板下载多城市网站如何做seo
  • 企业网站建设的主要内容万盛经开区规划建设局网站
  • 公司网站怎么申请怎么注册wordpress 5
  • 网站内页降权 关键词排名下降做类似猪八戒网的网站
  • 住房和城乡建设部网站网站首页 选择入口 设计