1. CSS中的定位position理解 页面元素定位,浮动,以及z-index的属性的使用是页面设计中经常使用。正确使用它们可以设计出层次感十足的页面。但是往往在使用中确常有疑惑: 1. 定位时left,top,right,bottom如何设置,设置多大的值为好?百分比设置效果如何?响应式页面中如何使用? 2. 如何正确设置z-index?z-index设置什么情况下设置无效? 3.float,static,和定位之间的层次关系? 4. 在相对定位(position:r ...

    阅读全文
  2. 现需要设计这样一个component组件,要求该组件有4部分组成: 1. 背景视频 2.一层蒙板 3.顶层文字描述 html结构如下 <div class="container"> <video class="backgroundVideo" muted autoplay loop> <source src="/imgs/BeachRockVideo.mp4" ...

    阅读全文
  3. 这是https://coverr.co提供的视频背景的实现方法。 1. Download your favorite video. 下载喜欢的视频 2. Upload the video to your website. 上传到你的网站 3. Add the following snippets to your site,加入代码   HTML代码: <div class="homepage-hero ...

    阅读全文
  4. Prepositions Prepositions - 介词 介词可以与动词、名词或形容词连用,许多情况下,介词的用法需要单独记忆:       from from next door (从隔壁) from my friend (从我的朋友那儿) of of gold (金质的) of the ci ...

    阅读全文