当前位置:首页 > 分享 > 正文内容

css1 css2 css3 区别

访客3年前 (2022-10-10)分享24

操作方法

  • 01
  • 02

    CSS1提供有关字体、颜色、位置和文本属性的基本信息,该版本已经得到了目前解析HTML和XML的浏览器的广泛支持。让程序员开发时可以不考虑显示和界面就可以制作表单和界面,显示问题可由美工或是程序员后期再来编写相应的 CSS2.0样式来解决。list-style-typedisc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-alpha | lower-latin | upper-alpha | upper-latin |_qdzhj.com_ hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha | katakana-iroha | none | inheritmargin<margin-width>{1,4} | inherit收藏查看我的收藏51有用+117CSS2编辑CSS2.0提供给我们了一个机制,让程序员开发时可以不考虑显示和界面就可以制作表单和界面,显示问题可由美工或是程序员后期再来编写相应的 CSS2.0样式来解决。不过由于CSS2.0目前尚未见过很好的编辑软件,所以无法做到所见即所得,编写起来不易。目录1CSS2简介2CSS2单位▪相对长度单位▪绝对长度单位▪颜色单位▪角度单位▪时间单位▪频率单位3CSS2标准属性1CSS2简介编辑样式单自从CSS1的版本之后,又在1998年5月发布了CSS2版本,样式单得到了更多的充实。CSS2.0是一套全新的样式表结构,_qdzhj.com_是由W3C推行的,同以往的CSS1.0或CSS1.2完全不一样,CSS2.0推荐的是一套内容和表现效果分离的方式,HTML元素可以通过CSS2.0的样式控制显示效果,可完全不使用以往HTML中的table和td来定位表单的外观和样式,只需使用div和 Li此类HTML标签来分割元素,之后即可通过CSS2.0样式来定义表单界面的外观。2CSS2单位编辑相对长度单位em ex px绝对长度单位pt pc in cm mm颜色单位rgb(R,G,B) #RRGGBB Color Name角度单位deg grad rad时间单位s ms频率单位kHz Hz3CSS2标准属性编辑属性取值(本列及后列链接源为W3C)初值适用于(默认所有)继承性百分比(默认N/A)媒体azimuth<angle> | [[ left-side | far-left |_yuzhishiye.com_ left | center-left | _qdzhj.com_center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards | inheritcenteryesauralbackground[background-color || background-image |_yuzhishiye.com_| background-repeat || background-attachment || background-position] | inheritXXnoallowed on 'background-position'visualbackground-attachmentscroll | fixed | inheritscrollnovisualbackground-color<color> | transparent | inherittransparentnovisualbackground-image<uri> | none | inheritnonenovisualbackground-position[ [<percentage> | <length> ]{1,2} | [ [top | center | bottom] || [left | center | right] ] ] | inherit0% 0%block-level and replaced elementsnorefer to the size of the box itselfvisualbackground-repeatrepeat | repeat-x | repeat-y | no-repeat | inheritrepeatnovisualborder[ border-width || border-style || <color> ] | inheritsee individual propertiesnovisualborder-collapsecollapse | separate | inheritcollapse'table' and 'inline-table' elementsyesvisualborder-color<color>{1,4} | transparent | inheritsee individual propertiesnovisualborder-spacing<length> <length>? | inherit0'table' and 'inline-table' elementsyesvisualborder-style<border-style>{1,4} | inheritsee individual propertiesnovisualborder-top border-right border-bottom border-left[ border-top-width || border-style || <color> ] | inheritsee individual propertiesnovisualborder-top-color border-right-color border-bottom-color border-left-color<color> | inheritthe value of the 'color' propertynovisualborder-top-style border-right-style border-bottom-style border-left-style<border-style> | inheritnonenovisualborder-top-width border-right-width border-bottom-width border-left-width<border-width> | inheritmediumnovisualborder-width<border-width>{1,4} | inheritsee individual propertiesnovisualbottom<length> | <percentage> | auto | inheritautopositioned elementsnorefer to height of containing blockvisualcaption-sidetop | bottom | left | right | inherittop'table-caption' elementsyesvisualclearnone | left | right | both | inheritnoneblock-level elementsnovisualclip<shape> | auto | inheritautoblock-level and replaced elementsnovisualcolor<color> | inheritdepends on user agentyesvisualcontent[ <string> | <uri> | <counter> | attr(X) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inheritempty string:before and :after pseudo-elementsnoallcounter-increment[ <identifier> <integer>? ]+ | none | inheritnonenoallcounter-reset[ <identifier> <integer>? ]+ | none | inheritnonenoallcue[ cue-before || cue-after ] | inheritXXnoauralcue-after<uri> | none | inheritnonenoauralcue-before<uri> | none | inheritnonenoauralcursor[ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ] ] | inheritautoyesvisual, interactivedirectionltr | rtl | inheritltrall elements, but see proseyesvisualdisplayinline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inheritinlinenoallelevation<angle> | below | level | above | higher | lower | inheritlevelyesauralempty-cellsshow | hide | inheritshow'table-cell' elementsyesvisualfloatleft | right | none | inheritnoneall but positioned elements and generated contentnovisualfont[ [ font-style || font-variant || font-weight ]? font-size [ / line-height ]? font-family ] | caption | icon | menu | message-box | small-caption | status-bar | inheritsee individual propertiesyesallowed on 'font-size' and 'line-height'visualfont-family[[ <family-name> | <generic-family> ],]* [<family-name> | <generic-family>] | inheritdepends on user agentyesvisualfont-size<absolute-size> | <relative-size> | <length> | <percentage> | inheritmediumyes, the computed value is inheritedrefer to parent element's font sizevisualfont-size-adjust<number> | none | inheritnoneyesvisualfont-stretchnormal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inheritnormalyesvisualfont-stylenormal | italic | oblique | inheritnormalyesvisualfont-variantnormal | small-caps | inheritnormalyesvisualfont-weightnormal | bold | bolder | lighter | 100 |、 200 | 300、 | 400 |、 500、 | 600 | 700 、| 800 | 900 | inheritnormalyesvisualheight<length> | <percentage> | auto | inheritautoall elements but non-replaced inline elements, table columns, and column groupsnosee prosevisualleft<length> | <percentage> | auto | inheritautopositioned elementsnorefer to width of containing blockvisualletter-spacingnormal | <length> | inheritnormalyesvisualline-heightnormal | <number> | <length> | <percentage> | inheritnormalyesrefer to the font size of the element itselfvisuallist-style[ list-style-type || list-style-position || list-style-image ] | inheritXXelements with 'display: list-item'yesvisuallist-style-image<uri> | none | inheritnoneelements with 'display: list-item'yesvisuallist-style-positioninside | outside | inheritoutsideelements with 'display: list-item'yesvisuallist-style-typedisc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-alpha | lower-latin | upper-alpha | upper-latin | hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha | katakana-iroha | none | inheritdiscelements with 'display: list-item'yesvisualmargin<margin-width>{1,4} | inheritXXnorefer to width of containing blockvisualmargin-top margin-right margin-bottom_6789w.net_ margin-left<margin-width> | inherit0norefer to width of containing blockvisualmarker-offset<length> | auto | inheritautoelements with 'display: marker'novisualmarks[ crop || cross ] | none | inheritnonepage contextN/Avisual, pagedmax-height<length> | <percentage> | none | inheritmax-width<length> | <percentage> | none | inheritCSS3语言开发是朝着模块化发展的。以前的规范作为一个模块实在是太庞大而且比较复杂,所以,把它分解为一些小的模块,更多新的模块也被加入进来。左边这个布局复杂的三栏网页来说,如果使用CSS3Grid布局的话,我们只需这样写:body{columns:3;column-gap:0.5in;}img{float:pagetopright;width:3gr;}border-color: <color>border-top-color: <color>/*给上边框上色*/border-right-color: <color>/*给右边框上色*/border-bottom-color:<color>/*给下边框上色*/border-left-color: <color>/*给左框上色*/

扫描二维码推送至手机访问。

版权声明:本文由冒牌码农发布,如需转载请注明出处。

本文链接:http://js.xxbyc.cn/post/21428.html

分享给朋友:

“css1 css2 css3 区别” 的相关文章

什么是香水的前调、中调、基调

什么是香水的前调、中调、基调

香水能让人感受到愉快,有时我们会注意到用的香水会有几种气味,这是什么原因呢?操作方法01首先你要知道,每一瓶香水都有不同的香料制作而成,喷出来后,各种香料挥发香气的时间不同,所以就有了前中后的变化。02前调:是在你喷出香水问到的短短的时间内...

一般人不知道的微信实用技巧

一般人不知道的微信实用技巧

操作方法01微信天天用,但以下10个好用的技巧,你不一定都知道!1、怎样快速查看未读消息?如果你有很多消息,有的没来得及看,双击底部的“微信”,就能速定位到未读的消息?2、说错话了,怎样取消语音发送?       当你按住了语音,但又不想发...

为何要使用导入导出仪:

为何要使用导入导出仪:

导入导出美容仪越来越受到美妆达人的关注,可是为什么要使用它们呢?小编将为你一一讲解!操作方法01根据生产商的描述,导入导出美容仪可以调节人体肌肤的酸碱平衡度,有助于修复皱纹、淡化斑点。广大消费者趋之若鹜,但大多数人都属于跟风购买,对于使用他...

全国福利彩票之东方6+1玩法规则

全国福利彩票之东方6+1玩法规则

很多人都有买彩票的习惯,但是他的玩法又要多少人能够清楚呢?今天小编就来给大家说一说福利彩票之东方6+1的玩法。操作方法01玩法介绍:东方6+1彩票投注区分为基本号码区和生肖号码区。东方6+1每注投注号码由一个6 位自然数(基本号码)和1个生...

如何搞好期末复习

如何搞好期末复习

期末复习是很重要的一个环节!所谓临阵磨枪不亮也光,但是怎么搞好期末复习呢?小编就跟大家分享一下经验。操作方法01首先要梳理知识点,哪些是重点,哪些是次重点,主次分清以后再根据自己的掌握情况来进行复习。02最有效的方法就是做一些曾经错了的题,...

米酒蛋花汤的做法

米酒蛋花汤的做法

米酒具有活血通经,温寒补虚的功效。它的营养成分很容易被人吸收,是中老年人,孕妇和身体虚弱的人补气养血的佳品。鸡蛋内富含胆固醇,营养丰富。米酒蛋花汤是我非常喜爱的一道美食,下面我把做法分享给大家。操作方法01首先咱们先拿出一个煮锅,锅中加水,...