样式注意事项
来源:互联网 发布:unity3d游戏开发pdf 编辑:程序博客网 时间:2024/06/07 18:47
css样式兼容性问题
color:red; /* 所有浏览器都支持 */
color:red !important; /* Firefox、IE7支持 */_color:red; /* IE6支持 */
*color:red; /* IE6、IE7支持 */
*+color:red; /* IE7支持 */
color:red\9; /* IE9以上支持 */
color:red\0; /* ie支持 */
input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px white inset;} //清除Chrome 自动填充的表单是淡黄色的背景
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 字体超出显示省略号 三个条件都需要满足
text-indent:-9999em; 字隐藏
text-transform:uppercase; 字母全部大写
dashed 边框虚线
italic 字体斜体
text-shadow: 5px 5px 5px #FF0000; 文本阴影
2d旋转 常用于箭头方向
transform:rotate(9deg); 旋转方向
-ms-transform:rotate(9deg); /* Internet Explorer */
-moz-transform:rotate(9deg); /* Firefox */
-webkit-transform:rotate(9deg); /* Safari 和 Chrome */
-o-transform:rotate(9deg); /* Opera */
-moz-transform: scale(1.1); -webkit-transform: scale(1.1); -o-transform: scale(1.1); -ms-transform: scale(1.1); 缩放 常用于图片滑过效果
过渡效果
transition-property:width 1s linear 2s; 过渡的css属性名称 过渡时间 曲线效果 从什么时候开始
/* Firefox 4 */
-moz-transition:width 1s linear 2s;
/* Safari and Chrome */
-webkit-transition:width 1s linear 2s;
/* Opera */
-o-transition:width 1s linear 2s;
- 样式注意事项
- 手机浏览页面样式注意事项
- 使用CSS控制超链接样式的注意事项
- 打印机打印CSS样式表的注意事项
- 引入css外部样式表的注意事项
- 创建Material样式卡片风格注意事项
- 列表样式的使用与注意事项
- vue build前图片样式注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- 做邮件样式注意事项 email html css 要点
- .NET主题样式 的应用和注意事项(超重要)
- Qt中如何使用样式表QPalette以及相关注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- 使用WPF的Generic.xaml加载样式的注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- Java多继承方法(名)冲突和成员内部类、局部内部类、静态内部类、匿名内部类
- Java直接插入排序
- MediaCodec解码aac,播放
- MySQL数据库性能测试的方法
- 散列表(hash)
- 样式注意事项
- 面试(技术篇)
- Zabbix学习之Server/Agent部署
- 1126. Eulerian Path 解析
- 基于docker搭建跨主机的spark集群并配置notebook(二)
- mysql重启的方法
- iOS 图片旋转方法
- Shred命令使用详解
- Android权限机制与适配经验