随笔分类 - HTML+CSS
摘要:在网站的页头添加如下代码 <meta name="referrer" content="never"> <meta data-draft-node="block" data-draft-type="table" data-size="normal" data-row-style="normal">
阅读全文
摘要:@charset "UTF-8"; /*css 初始化 */ html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin:0; padding:0; } fie
阅读全文
摘要:.picScroll-left{ width: 1180px; position:relative; overflow: hidden; .bd{ ul{ li{ float: left; display: inline; width:295px;...
阅读全文
摘要:如您是网站的开发者,可以通过在页面<head>标签中添加代码,来指定网站的模式 若页面需默认用极速模式,增加标签:<meta name=renderer content=webkit> 若页面需默认用IE兼容模式,增加标签:<meta name=renderer content=ie-comp> 若
阅读全文
摘要:第一种方法: 用计时器,设定一个和动画时长一样的time,过time事件去执行这个函数。 setTimeout(function(){ },time); 第二种方法: 当-webkit-animation动画结束时有一个webkitAnimationEnd事件,只要监听这个事件就可以了。 不同浏览器
阅读全文
摘要:子元素在父元素里面垂直居中
阅读全文
摘要:cubic-bezier 又称三次贝塞尔,主要是为 animation 生成速度曲线的函数,规定是 cubic-bezier(<x1>, <y1>, <x2>, <y2>)。 我们可以从下图中简要理解一下 cubic-bezier: 从上图我们需要知道的是 cubic-bezier 的取值范围: P
阅读全文
摘要:作者:词晖链接:https://www.zhihu.com/question/19586885/answer/48933504来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1.位置属性(position, top, right, z-index, display,
阅读全文
摘要:多行未知文本垂直居中 多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的垂直居中多行文本的...
阅读全文
摘要:<link rel="stylesheet" media="screen and (max-width:600px)" href="small.css" type="text/css" /> 上面表示的是:当屏幕小于或等于600px时,将采用small.css样式来渲染Web页面。 <link re
阅读全文
摘要:几个常出现的问题: 1.网站打开空白 2.页面头部出现多余的空白 3.网站出现乱码,如“锘�” 解决方法可以是: 1.选用专业的编辑器,例如notepad++,sublime,editplus这样不会自动签名。 2.sublime通过如下操作File -> Save with Encoding ->
阅读全文
摘要:1、设置<meta>标签 <meta name="format-detection" content="telephone=no">当该 HTML 页面在手机上浏览时,该标签用于指定是否将网页内容中的手机号码显示为拨号的超链接。在 iPhone 上默认值是:<meta name="format-de
阅读全文
摘要:Title Welcome to Snapshot
阅读全文
摘要:超链接返回上一页代码: <a href=”#” onClick=”javascript :history.back(-1);”>返回上一页</a> <a href=”#” onClick=”javascript :history.go(-1);”>返回上一页</a> 用按钮代码:<input typ
阅读全文
摘要:css中引入字体: 常用的CSS字体名称 宋体 SimSun 黑体 SimHei 微软雅黑 Microsoft YaHei 微软正黑体 Microsoft JhengHei 新宋体 NSimSun 新细明体 PMingLiU 细明体 MingLiU 标楷体 DFKai-SB 仿宋 FangSong
阅读全文
摘要:其中的5是指停留5秒钟后自动刷新到URL网址。 --> 注意:必须使用GMT的时间格式,或直接设为0(数字表示多少时间后过期)。 --> 注意:网页不保存在缓存中,每次访问都刷新页面。这样设定,访问者将无法脱机浏览。 --> ...
阅读全文