双层边框样式css

html-css023

双层边框样式css,第1张

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>无标题文档</title>

<style type="text/css">

.title{

  border-bottom:1px solid #666

  line-height:35px

}

.title strong{

  border-bottom:3px solid #F93

  line-height:35px

  display:inline-block

  margin-bottom:-2px

}

.title strong span{

  font-weight:normal

  padding:0 15px

}

</style>

</head>

<body>

<h2 class="title">

<strong>大赛评委团<span>English</span></strong>

</h2>

</body>

</html>

改为双层样式,即外层控制宽度、高度,内层控制border样式、margin样式;举例如下:

<div class="wrap">

<div class="inner">

这里是内容了

</div>

</div>

<style>

.wrap{width:100%}

.inner{border:1px solid red}

</style>

能明白这种制作思路吗?就是分离出宽度控制的box

1 .纯css实现icon图表,不需要引入阿里妈妈那个库了 https://www.zhangxinxu.com/sp/icon/css.php

2 .实现变色

1 .px就是像素,一个长度单位.一般指图像的最小完整采样,这个最小。我们肉眼所见的显示器屏幕上的一切都是由像素这个最小采样组成。显示器就是像素的世界

2 .理论上可以用css实现这张图片,只是需要足够的时间。可以用css把美女图片的所有像素点表示出来

4 .如何用CSS模拟平滑的圆角,注意这里的平滑二字,一样的,在像素级别您会看到圆角之外的半透明色,取色工具选取该点颜色值,双层标签模拟就ok了,具体不多说。如何CSS模拟图片样子的按钮,如何用CSS模拟一些导航背景,如何用CSS模拟渐变色等.可以给原来的图片添加阴影,甚至是ps图片

5 .总之,一切都是像素,将图片和效果放大到像素级别,都会原形毕露。我草这个nb,张鑫旭