css basic.css

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css basic.css相关的知识,希望对你有一定的参考价值。

/* apply a natural box layout model to all elements */
*, *:before, *:after {
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */

	padding: 0;
	margin: 0;
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}
.clearfix:after {
	clear: both;
}
.clearfix {
	*zoom: 1;
}

.ellipsis {
	/* essential */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-o-text-overflow: ellipsis;	/* required for Opera */
	-ms-text-overflow: ellipsis;	/* required for IE8, allegedly */
	-moz-binding: url('ellipsis.xml#ellipsis');    /* for Firefox */
	/* the required xml: https://gist.github.com/mirkolofio/6353351 */
	
	/* for good looks */
	padding: 10px;
	width: 100%;
}

以上是关于css basic.css的主要内容,如果未能解决你的问题,请参考以下文章

html #HTML MENU WITH BASIC CSS

ThinkPHP - 模板引擎

css div高度设置

css after 插入图片,怎么设置内容高度

localStorage登录页记住密码(艺博会)

div+css布局问题,header和nav区中间有一段空白?为啥呢?怎么去掉