Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS:带有渐变背景的链接(显示:块)内部对齐的插入阴影的图像和文本_Css_Html_Gradient_Shadow - Fatal编程技术网

CSS:带有渐变背景的链接(显示:块)内部对齐的插入阴影的图像和文本

CSS:带有渐变背景的链接(显示:块)内部对齐的插入阴影的图像和文本,css,html,gradient,shadow,Css,Html,Gradient,Shadow,再见 我正在开发一个web应用程序,并试图获得一个可点击的div(我用 我该怎么做?最好的做法是什么(用photoshop设计的图标字体+字体或图像+用css设计的字体,还是什么?) PS:那作为链接/div边框的漂亮的两行呢,它们的样式是怎样的?我认为最好的是用photoshop中的图像样式+css中的字体样式 对于线条,请尝试使用渐变和长方体阴影 JS-Bin 梅因先生{ 显示:块; 位置:相对位置; 宽度:150px; 高度:70像素; 背景:#fcfd;/*旧浏览器*/ 背景:

再见

我正在开发一个web应用程序,并试图获得一个可点击的div(我用

我该怎么做?最好的做法是什么(用photoshop设计的图标字体+字体或图像+用css设计的字体,还是什么?)


PS:那作为链接/div边框的漂亮的两行呢,它们的样式是怎样的?

我认为最好的是用photoshop中的图像样式+css中的字体样式 对于线条,请尝试使用渐变和长方体阴影


JS-Bin
梅因先生{ 显示:块; 位置:相对位置; 宽度:150px; 高度:70像素; 背景:#fcfd;/*旧浏览器*/ 背景:-moz线性梯度(顶部,#fcfd 0%,#eaecf2 100%);/*FF3.6+*/ 背景:-webkit渐变(线性、左上、左下、颜色停止(0%、#fcfcfd)、颜色停止(100%、#eaecf2));/*铬、Safari4+*/ 背景:-webkit线性梯度(顶部,#FCFD 0%,#eaecf2 100%);/*Chrome10+,Safari5.1+*/ 背景:-o-线性梯度(顶部,#FCFD 0%,#eaecf2 100%);/*Opera 11.10+*/ 背景:-ms线性梯度(顶部,#FCFD 0%,#eaecf2 100%);/*IE10+*/ 背景:线性梯度(至底部,#fcfd 0%,#eaecf2 100%);/*W3C*/ 过滤器:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfd',endColorstr='#eaecf2',GradientType=0);/*IE6-9*/ -moz框大小:边框框; 框大小:边框框; -webkit框大小:边框框; } .台词{ 位置:相对位置; 宽度:150px; 高度:64px; 利润上限:3倍; } 李先生{ 显示:内联块; 利润上限:4倍; } .线路{ 宽度:2倍; 高度:60px; 背景:#9fa0a3;/*旧浏览器*/ 背景:-莫兹径向梯度(中心,椭圆覆盖,#9fa0a3 0%,#f4f6fc 100%);/*FF3.6+*/ 背景:-webkit渐变(径向、中-中、0px、中-中、100%、颜色停止(0%,#9fa0a3)、颜色停止(100%,#f4f6fc));/*铬、Safari4+*/ 背景:-webkit径向梯度(中心,椭圆盖,#9fa0a3 0%,#f4f6fc 100%);/*Chrome10+,Safari5.1+*/ 背景:-o形径向梯度(中心,椭圆覆盖,#9fa0a3 0%,#f4f6fc 100%);/*Opera 12+*/ 背景:-ms径向梯度(中心,椭圆覆盖,#9fa0a3 0%,#f4f6fc 100%);/*IE10+*/ 背景:径向梯度(中心椭圆,#9fa0a3 0%,#f4f6fc 100%);/*W3C*/ 过滤器:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9fa0a3',endColorstr='#f4f6fc',GradientType=1);/*IE6-9在水平渐变上回退*/ 右边距:60px; }
您可以发布一些HTML和CSS的片段吗?
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="main">
    <ul class="lines">
      <li class="line"></li>
      <li class="line"></li>
    </ul>
  </div>
</body>
</html>

.main {
  display:block;
  position:relative;
  width:150px;
  height:70px;
  background: #fcfcfd; /* Old browsers */
background: -moz-linear-gradient(top,  #fcfcfd 0%, #eaecf2 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfcfd), color-stop(100%,#eaecf2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #fcfcfd 0%,#eaecf2 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #fcfcfd 0%,#eaecf2 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #fcfcfd 0%,#eaecf2 100%); /* IE10+ */
background: linear-gradient(to bottom,  #fcfcfd 0%,#eaecf2 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfd', endColorstr='#eaecf2',GradientType=0 ); /* IE6-9 */
   -moz-box-sizing: border-box; 
    box-sizing: border-box; 
  -webkit-box-sizing: border-box;
}

.lines{
  position:relative;
  width:150px;
  height:64px;
  margin-top:3px;
}

.lines li {
  display:inline-block;
  margin-top:4px;
}

.line {
  width:2px;
  height:60px;
  background: #9fa0a3; /* Old browsers */
background: -moz-radial-gradient(center, ellipse cover,  #9fa0a3 0%, #f4f6fc 100%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#9fa0a3), color-stop(100%,#f4f6fc)); /* Chrome,Safari4+ */
background: -webkit-radial-gradient(center, ellipse cover,  #9fa0a3 0%,#f4f6fc 100%); /* Chrome10+,Safari5.1+ */
background: -o-radial-gradient(center, ellipse cover,  #9fa0a3 0%,#f4f6fc 100%); /* Opera 12+ */
background: -ms-radial-gradient(center, ellipse cover,  #9fa0a3 0%,#f4f6fc 100%); /* IE10+ */
background: radial-gradient(ellipse at center,  #9fa0a3 0%,#f4f6fc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9fa0a3', endColorstr='#f4f6fc',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  margin-right:60px; 
}