每天记住大神的三个知识点

每天记住大神的三个知识点

****CSS相关问题CSS-related issues

  1. ###display:none和visibility:hidden的区别?
    ( ###display: none and visibility: hidden difference?)
    display:none 隐藏对应的元素,在文档布局中不再给它分配空间,它各边的元素会合拢,就当他从来不存在。
    visibility:hidden 隐藏对应的元素,但是在文档布局中仍保留原来的空间。
    (display: none to hide the corresponding elements in the document layout is no longer space allocated to it, it is the element of each side will be closed, on when he never existed.
    visibility: hidden hides the corresponding elements, but still retain the original layout of the space in the document. )

  2. ###CSS中 link 和@import 的区别是?
    ( ###The difference in the link andimport CSS is?)
    (1) link属于HTML标签,而@import是CSS提供的;
    (2) 页面被加载的时,link会同时被加载,而@import引用的CSS会等到页面被加载完再加载;
    (3) import只在IE5以上才能识别,而link是HTML标签,无兼容问题;
    (4) link方式的样式的权重 高于@import的权重.

((1) link belong to HTML tags, and CSSimport is provided;
(2) the page is loaded, link will also be loaded, but referencesimport CSS will wait until the page is finished loading reloading;
(3) Import only to recognize in IE5 or more, while link is HTML tag, no compatibility issues; style right
(4) linkimport way of weight above the weight of heavy. Similarities and Differences between absolute and float attributes: position)

  1. ###position:absolute和float属性的异同
    A:共同点:
    对内联元素设置floatabsolute属性,可以让元素脱离文档流,并且可以设置其宽高。
    B:不同点:
    float仍会占据位置,position会覆盖文档流中的其他元素。
    (A: common:
    inline element set float andabsolute property allows elements from the document flow, and can set its width and height.
    B: Different point:
    float will still occupy the position, position overrides other elements in the document flow.)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值