CSS中的height:115px;_height:125px;是什么意思第二个_height:125px;是什么意思

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 18:16:25
CSS中的height:115px;_height:125px;是什么意思第二个_height:125px;是什么意思

CSS中的height:115px;_height:125px;是什么意思第二个_height:125px;是什么意思
CSS中的height:115px;_height:125px;是什么意思
第二个_height:125px;是什么意思

CSS中的height:115px;_height:125px;是什么意思第二个_height:125px;是什么意思
就是暂时不用的意思~
你要这样理
样式定义的开头是名称,不管这个名称跟你心里的名称差距有多小,他就是另一个名称~
那么_height这个名称就跟height没有关系了~但它好像又没有在css里面可解释的名称内?
既然css不会解释_height这个名称,其他浏览器也不支持,何必要写这个呢?
答案就在如果我把_去掉,那么它就变成了可解释的height,因为写在第一个height的后面,所以最终的高度是125px,所以这里还隐藏了一个条件:
就是_height必须放在height的后面
那么如果我要修改高度,则只需要把_拿掉就可以了.
这样写目的是明确高度有2个值可以取115px和125px,那为什么不把不用的这个写在css中的注释行呢?我认为这是个人写法的问题.

CSS中的height:115px;_height:125px;是什么意思第二个_height:125px;是什么意思 css #div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;} CSS中 *+height是什么意思 div+css请问这个什么意思height:auto important; height:663px; min-height:663px important;div+css请问这个什么意思height:auto important; height:663px; min-height:663px important;就解释这段话好了,不需要那么长,会的朋友帮 html a标签中的文字怎么居中对齐<style type="text/css">.btn:hover{font-size:22px;}.btn{color:#000;background:#eaeaea}.a{text-decoration:none;font-size:20px;font-weight:bold;width:222px;height:100px;border:1px solid red}</ CSS中class和id的区别例如:CSSBBS新手教程第一课div{ width:100px; height:100px; border:1px solid #000; float:left; background:#99FF00; margin-left:10px;}.css{ background:#FFFF00}#css{ background:#00FFFF}直接div.css#css我修改运行 div+css高手进,a { display:block; height:34px; width:107px; line-height:2; text-align:center; background:url(images/2010-08/14/014304_btn_bg.gif) no-repeat 0px 0px; color:#ff0000; padding-top:3px; }重点是那个line-height:2 ,no-repeat 0px 0px pa .g_clr:after { content: ; display:block; height:0px; clear:both; visibility:hidden; }这是css的一串代码,请问g_clr:after这个是什么意思,统称为什么? CSS中line-height与height的区别? css!important的问题..?float:left;width:960px;!important;width:956px;height:90px;!important;height:86px;非ie是960px 与90px 但是同时定义两个的话不是看最后的吗..?非ie不会忽略任意一个..?..这是神马情况呢..? css中background和_background属性的区别css样式表中有如下语句:.imminbox { width:39px; height:29px;padding-right:3px; cursor:pointer; position:absolute ;right:1px; bottom:0px;z-index:20; overflow:visible; background:url(../images/im_mi CSS中的padding:3px 4px 2px 6px;表示什么?3 4 2 6分别表示上下左右的什么?padding是什么? 怎样用CSS将着四个div实现同一条线,水平居中?代码如下:<html><head><title></title><style type="text/css">.one{border:2px solid red;width:250px;height:50px;text-align:center;background:#999; 发光字中的height是什么意思发光字代码如下:filter:glow(color:#1AE61A,strength=5); height:20px;color:#000000 其中height怎么理解? 求css左侧宽度固定右侧宽度自适应的办法请调整浏览器窗口 html,body{margin:0; padding:0;border:none; font-size:12px; color:#000000; line-height:180%;background-color:#f2f6fb;overflow:hidden;height:100%;}#content{position:relative CSS中,width、 line-height和行框的问题有几个疑问:1、比如这么一段内容This is text,some of whick hs ,plus other textthat is strong strongly emphasized and that islarger than the surrounding text.三行的line-height都是12px,但 css中 @media screen and (max-width:640px){} CSS修饰表格有一句 padding:3px 7px 2px 7px; 为什么有四个数值