html控件中设置两个样式渲染
来源:互联网 发布:中文.商城域名骗局 编辑:程序博客网 时间:2024/05/21 00:21
如果一个控件中要设置添加多个样式,CSS查找方式是
.a_class.b_class......
<!DOCTYPE html><html lang="zh-CN"><head><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>一个空间中的两个样式</title></head><style> div{ border: 1px solid blue; width: 100px; line-height: 25px; margin-top: 10px ; } .current{ color: blue; } .active{ color: green; } .current.active{ color: red; } .active.current{ color: #ffff00; }</style><body > <div class="current"> current </div> <div class="active"> active </div><!-- active current样式不分前后,都是.current.active样式--> <div class="active current"> active current </div> <div class="current active"> current active </div></body></html>
0 0
- html控件中设置两个样式渲染
- html设置控件的背景样式,透明
- MVC C# Html.TextBox等Html控件设置样式
- HTML中滚动条的样式设置
- 在HTML元素中设置css样式
- Flex4 中 borderContainer 控件的样式设置
- html超链接样式设置
- 设置List控件样式
- c#在后台文件中对html元素设置样式
- HTML中如何用CSS设置文本样式
- HTML中button标签通过CSS设置样式
- angularjs中使用ng-repeat渲染最后一个li的时候设置不同样式
- Flex中ToggleButtonBar控件设置button的样式
- android 中如何设置控件的字体和背景样式
- WPF中ComboBox控件显示的样式设置
- Android中checkbox控件的自定义样式设置
- html如何设置打印样式?
- 【html 表格样式】table 设置
- Informatica 安装 无法创建域
- 乐视VR与腾讯管家深度合作,打造VR
- bootstrap collapse 控件学习
- flipsnap 控件学习
- display : table table-row rable-cell
- html控件中设置两个样式渲染
- odoo之Qweb的一些参数
- CSS:span元素margin-top无效的根源
- Unity3d开发(十六) 重写UGUI组件
- 经典的01背包问题
- ASCII码排序
- 宏定义(#define)和常量(const)的区别
- Firefox中元素获取焦点函数focus不起作用的解决方法
- ANT批量执行Jmeter脚本