css小技巧
网页字体:font-size: 16px;font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif; 网络常用来显高大上的名言警句字体 font: 12px "宋体", Arial, Helvetica, sans-serif; 普通内容字体
选择器: .texts p:nth-child(2){} :取texts 类下的第二个p:hover {}:当鼠标移到 动画控制: /* -webkit-transition: all 1s; */ -moz-transition: all 1s; -o-transition: all 1s; transition: all 1s; /*动画共1秒 /* -webkit-transform: translate(60px); */ -moz-transform: translate(60px); /*沿x轴向右移60px*/ -o-transform: translate(60px); -ms-transform: translate(60px); /* transform: translate(60px); */ 整体效果调整: letter-spacing: 2px; 字与字间隔2pxtext-shadow:0px 1px rgba(255,255,255,0.3) 字阴影 box-shadow: #999 4px 5px 1px; 块区域阴影 扩展知识: line-height: 28px; 为达效果,当高度不能更改时,可以试着用行高 .blogs::before { content: ""; width: 10px; height: 10px; border-radius: 50%; position: absolute; background: #cac1c1; border: 2px solid #fff; left: -27px; -webkit-transition: all 1s; -moz-transition: all 1s; -o-transition: all 1s; transition: all 1s; }.blogs:hover::before { background: #474645 }.dateview { position: absolute; left: -125px; top: 0px; z-index: 1; color: #F5F5F5; }.blogs::after { content: ""; width: 121px; height: 29px; position: absolute; left: -148px; top: -9px; z-index: 0; background: #474645 url(../images/ti.png) no-repeat; opacity: 0; -webkit-transition: all 1s; -moz-transition: all 1s; -o-transition: all 1s; transition: all 1s; }.blogs:hover::after { opacity: 1 } a:before{ a伪元素 选择未访问、已访问、悬浮和活动链接,并设置它们的样式:a:link {color:blue;}a:visited {color:blue;}a:hover {color:red;}a:active {color:yellow;}
结尾:给自己的的页面设置分享按钮 例如:分享到QQ 、新浪 、人人、微信 等等 分享按钮-百度分享它会告诉你 |
- 上一篇:CSS弹性盒模型flex在布局中的应用
- 下一篇:meta总结