美文网首页
CSS-包裹特性

CSS-包裹特性

作者: 测试探索 | 来源:发表于2022-06-10 20:59 被阅读0次

包裹特性

image.png

目录及代码

image.png

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
    <div id="div1">
        <img src="../image/3.png">

    </div>

</body>
</html>

index.css

#div1{
    background-color: red;
    float: left;
}

img{
    vertical-align: bottom;
}
image.png

相关文章

  • CSS-包裹特性

    包裹特性 目录及代码 index.html index.css

  • CSS-三大特性

    CSS层叠性 所谓层叠性是指多种CSS样式的叠加,是浏览器处理冲突的一个能力,如果一个属性通过两个相同选择器设置到...

  • CSS-移动端页面(响应式)

    CSS-移动端页面(响应式) 媒体查询

  • 理解float

    一、浮动的设计初衷 文字环绕效果 二、 浮动的特性: 包裹(元素) 破坏(父元素的高度) 2.1 具有包裹性的其它...

  • RunTime源码阅读(八)之autoreleasepool

    1.autoreleasepool特性 在ARC时只要保证在@autoreleasepool{}包裹,变量超出函数...

  • 《CSS世界》

    内部尺寸与流体特性 包裹性。 “包裹性”是我自己对“shrink-to-fit”理解后的一种称谓,我个人觉得非常形...

  • absolute相关

    与float相同,具有包裹性和破坏性。 特性1:脱离文档流,让出占用的空间(宽高都为0) 特性2:去浮动,位置跟随...

  • Less学习总结

    say hello & intro Less is More,Than CSS-少即是多,比CSS less介绍-...

  • css-背景设置

    css-背景设置 背景设置 background: background-color: 背景颜色设置 ba...

  • 最新JavaWebIDEA2020教程及资料

    目录 ┣━━视频┃ ┣━━01-html&CSS┃ ┃ ┣━━01HTML和CSS-引课 .avi┃ ┃ ┣━━0...

网友评论

      本文标题:CSS-包裹特性

      本文链接:https://www.haomeiwen.com/subject/btjfmrtx.html