代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Css
】
恢复容器里所有html元素的默认样式
作者:
尾部大湿
/ 发布于
2014/8/4
/
974
恢复容器里所有html元素的默认样式,样式是网上搜集的,不一定全复合w3c标准,你可根据自己的需要调整。
/* 将dcss容器里的所有元素设为默认值 */ .dcss html,.dcss address,.dcss blockquote,.dcss body,.dcss dd,.dcss div, .dcss dl,.dcss dt,.dcss fieldset,.dcss form,.dcss frame,.dcss frameset, .dcss h1,.dcss h2,.dcss h3,.dcss h4,.dcss h5,.dcss h6,.dcss noframes, .dcss ol,.dcss p,.dcss ul,.dcss center,.dcss dir,.dcss hr,.dcss menu, .dcss pre { display: block } .dcss li { display: list-item } .dcss head { display: none } .dcss table { display: table } .dcss tr { display: table-row } .dcss thead { display: table-header-group } .dcss tbody { display: table-row-group } .dcss tfoot { display: table-footer-group } .dcss col { display: table-column } .dcss colgroup { display: table-column-group } .dcss td,.dcss th { display: table-cell; } .dcss caption { display: table-caption } .dcss th { font-weight: bolder; text-align: center } .dcss caption { text-align: center } .dcss body { margin: 8px; line-height: 1.12 } .dcss h1 { font-size: 2em; margin: .67em 0;line-height: 1.5em } .dcss h2 { font-size: 1.5em; margin: .75em 0;line-height: 1.5em } .dcss h3 { font-size: 1.17em; margin: .83em 0;line-height: 1.5em } .dcss h4 { font-size: 1.09em; margin: 1.12em 0;line-height: 1.5em } .dcss h4,.dcss p,.dcss blockquote,.dcss ul,.dcss fieldset, .dcss form,.dcss ol,.dcss dl,.dcss dir,.dcss menu { margin: 1.12em 0 } .dcss h5 { font-size: .83em; margin: 1.5em 0;line-height: 1.5em } .dcss h6 { font-size: .75em; margin: 1.67em 0;line-height: 1.5em } .dcss h1, .dcss h2, .dcss h3, .dcss h4, .dcss h5, .dcss h6, .dcss b,.dcss strong { font-weight: bolder } .dcss blockquote { margin-left: 40px; margin-right: 40px } .dcss i, .dcss cite, .dcss em,.dcss var,.dcss address { font-style: italic } .dcss pre, .dcss tt,.dcss code,.dcss kbd,.dcss samp { font-family: monospace } .dcss pre { white-space: pre } .dcss button,.dcss textarea,.dcss input,.dcss object,.dcss select { display:inline-block; } .dcss big { font-size: 1.17em } .dcss small, .dcss sub, .dcss sup { font-size: .83em } .dcss sub { vertical-align: sub } .dcss sup { vertical-align: super } .dcss table { border-spacing: 2px; } .dcss thead, .dcss tbody,.dcss tfoot { vertical-align: middle } .dcss td, .dcss th { vertical-align: inherit } .dcss s, .dcss strike,.dcss del { text-decoration: line-through } .dcss hr { border: 1px inset } .dcss ol, .dcss ul,.dcss dir, .dcss menu, .dcss dd { margin-left: 40px } .dcss ol { list-style-type: decimal } .dcss ol ul,.dcss ul ol, .dcss ul ul, .dcss ol ol { margin-top: 0; margin-bottom: 0 } .dcss u,.dcss ins { text-decoration: underline } .dcss br:before { content: "A" } .dcss :before, .dcss :after { white-space: pre-line } .dcss center { text-align: center } .dcss abbr,.dcss acronym { font-variant: small-caps; letter-spacing: 0.1em } .dcss :link,.dcss :visited { text-decoration: underline } .dcss :focus { outline: thin dotted invert } .dcss BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override } .dcss BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override } .dcss *[DIR="ltr"] { direction: ltr; unicode-bidi: embed } .dcss *[DIR="rtl"] { direction: rtl; unicode-bidi: embed } @media print { .dcss h1 { page-break-before: always } .dcss h1,.dcss h2,.dcss h3,.dcss h4,.dcss h5,.dcss h6 { page-break-after: avoid } .dcss ul,.dcss ol,.dcss dl { page-break-before: avoid } }
试试其它关键字
恢复容器
默认样式
同语言下
.
前端PC-移动端CSS公共样式+HTML
.
手机端页面通用样式
.
H5页面通用头部设置
.
elect默认样式美化代码兼容移动端和pc端
.
按钮效果 css
.
唤醒app
.
放大效果
.
html5+css3实现上拉和下拉刷新
.
html上传图片后,在页面显示上传的图片
.
html5实现点击弹出图片
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
尾部大湿
贡献的其它代码
(
1
)
.
恢复容器里所有html元素的默认样式
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3