没有合适的资源?快使用搜索试试~ 我知道了~
网页的效果:Style 中的Display用法.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 177 浏览量
2022-11-27
21:36:27
上传
评论
收藏 78KB PDF 举报
温馨提示
试读
3页
...
资源推荐
资源详情
资源评论
网页的效果:Style 中的 Display 用法
display:none 改 div 不会显示,默认为 inline 或"",可以显示出来。
HTML { display : sDisplay }
Scripting
object
.style.display [ = sDisplay ]
Possible Values
String that specifies or receives one of the following values.
block
none
inline
Object is rendered as a block element.
Object is not rendered.
Default. Object is rendered as an inline element sized by
the dimensions of the content.
Object is rendered inline, but the contents of the object
inline-block
sDisplay
list-item
are rendered as a block element. Adjacent inline elements
are rendered on the same line, space permitting.
Internet Explorer 6 and later. Object is rendered as a
block element, and a list-item marker is added.
Table header is always displayed before all other rows and
table-header-group row groups, and after any top captions. The header is
displayed on each page spanned by a table.
Table footer is always displayed after all other rows and
table-footer-group row groups, and before any bottom captions. The footer is
displayed on each page spanned by a table.
<div style="height:276px;width:350px;line-height:20px;overflow-y:scroll;
overflow-x:hidden;background:#fff;display:none" id="LrcShower_div">2121</div>
______________________________________________________________
display 版本:CSS1/CSS2 兼容性:IE4+ NS4+ 继承性:有
语法:
display : block | none | inline | compact | marker | inline-table | list-item | run-in
| table | table-caption | table-cell | table-column | table-column-group |
table-footer-group | table-header-group | table-row | table-row-group
取值:
block : CSS1 块对象的默认值。将对象强制作为块对象呈递,为对象之后添加新行
none : CSS1 隐藏对象。与 visibility 属性的 hidden 值不同,其不为被隐藏的对象保留其
物理空间
inline : CSS1 内联对象的默认值。将对象强制作为内联对象呈递,从对象中删除行
inline-block : IE5.5 将对象呈递为内联对象,但是对象的内容作为块对象呈递。旁边的内
联对象会被呈递在同一行内
资源评论
G11176593
- 粉丝: 6689
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功