前军教程网

中小站长与DIV+CSS网页布局开发技术人员的首选CSS学习平台

html页面常用css简单整理(html中css的用法)

(1),常用css简单整理

    <style type="text/css">
        .testCss01{
			<!--(01)光标手形pointer,普通箭头光标-->
            cursor: pointer;
			<!--(02)文字上删除线line-through,下划线underline-->
            text-decoration: pointer;
			<!--(03)元素的宽高-->
            width: 100px;
			height: 100px;
			<!--(04)元素背景色-->
            background: red;
			<!--(05)字体颜色-->
			color: red;
			<!--(06)内边距-->
			padding: 5px;
			<!--(07)右侧外边距-->
			margin-right: 5px;
			<!--(08)隐藏-->
			display: none;
			<!--(09)字体粗体-->
			font-weight: bold;
			<!--(10)行高-->
			line-height: 10px;
			<!--(11)文本左对齐-->
			text-align: left;
			<!--(12)距顶部距离-->
			top: 10px;
			<!--(13)溢出滚动条-->
			overflow: auto;
			<!--(14)右边框红色线-->
			border-right: 2px red solid;
			<!--(15)浮动-->
			float:left;
			<!--(16)绝对-->
			position:absolute;
			<!--(17)指定元素内的空白怎么处理,此值文本不会换行-->
			white-space: nowrap;
        }
    </style>

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言