1. 如何修改CKEditor的内容css?即在编辑模式下如何定义其css? 在ckeditor文件夹下找到contents.css,如果是使用config.contentsCss设置加载指定的css文件,那就找到对应的css文件然后编辑样式。 比如说,希望在编辑模式下默认的<p>都是首行缩进的,那就可以在contents.css文件中加入: p{ text-indent:2em; } Edit the contents.css file that ...

    阅读全文
  2. 写断打字效果的js. html: <p class="typeIn">This is the text typed in manually.This is the text typed in manually.This is the text typed in manually. This is the text typed in manually.This is the text typed in manually.</p> ...

    阅读全文
  3. 参考文档:http://www.cnblogs.com/dolphinX/p/4087817.html CSS3的动画:http://www.w3school.com.cn/css3/css3_animation.asp .cssstyle{ animation: animation-name animation-duration animation-iteration-count; -webkit-animation: animation-name animat ...

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

    阅读全文
  5. http://www.zhangxinxu.com/study/201503/css3-object-fit.html 这篇博客很好的演示了object-fit的各种设置。博主有很不错的前端笔记。 The object-fit property defines how an element responds to the height and width of its content box. It's intended for images, videos and ot ...

    阅读全文
  6. 这是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 ...

    阅读全文
  7. 实现滚动窗口触发动画需要js的帮助。有jquery的一个全屏滚动插件fullpage.js fullPage.js是开源的JQuery插件库,其Github地址:https://github.com/alvarotrigo/fullPage.js fullPage.js 是一个基于 jQuery 的插件,它能够很方便、很轻松的制作出全屏网站,主要功能有: 支持鼠标滚动 支持前进后退和键盘控制 多个回调函数 支持手机、平板触摸事件 支持 CSS3 动画 ...

    阅读全文
  8. css3引入的”vw”和”vh”基于宽度/高度相对于窗口大小,”vw”=”view width”, “vh”=”view height”; 以上我们称为视窗单位允许我们更接近浏览器窗口来定义大小。 参照demo案例对照下面四个容器的css样式。 以前通过百分比来做相应式开发,但对于高度100%的设置总有一些限制。有了vh是否就消除了这些限制变的更简 ...

    阅读全文
  9. CSS3 filter滤镜效果太强大了,不用不知道。有了它ps可以少做做了。 Filters主要是运用在图片上,以实现一些特效。(尽管他们也能运用于video上),不过我们在些只来讨论图片上的运用。 语法 elm { filter: none | <filter-function > [ <filter-function> ]* } 其默认值是none,他不具备继承性,其中fil ...

    阅读全文
  10. Inline-block是否可以代替float? inline-block是display的属性值,float是属性表示浮动。所以本身是有区别的,但是在某些场景下inline-block来编排layout有更好的编写效率。而不需要如float一样去clear浮动。 在排列一系列相同功能块展示(display)布局时以前常用float这些功能块来实现自动排列展示,最后在clear浮动来确保父块的高度。使用float一般都能工作,不过不得不承认,它们用起来有时候没那么简单。不过现在用in ...

    阅读全文
1234