CSS属性border-bottom-image不工作? [英] CSS property border-bottom-image is not working?

查看:226
本文介绍了CSS属性border-bottom-image不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的CSS代码:

.header-text {
   -moz-border-bottom-image: url('images/tour_tab_border.gif') 27 27 27 27 stretch stretch;
   -webkit-border-bottom-image: url('images/tour_tab_border.gif') 27 27 27 27 stretch stretch;
   -o-borderbottom-image: url('images/tour_tab_border.gif') 27 27 27 27 stretch stretch;
 }

我的HTML代码:

<div>
  <h1 class="header-text" >let's Knockout Poverty in India!</h1>
</div>

为什么我的边框图片不显示?

Why is my border image not showing?

推荐答案

实际上,我没有看到是否有一个 -moz-border-bottom-image 属性,你可能需要 -moz-border-image 。它允许你设置边框宽度,以便你可以做像

Actually I don't see if there is a -moz-border-bottom-image property, you probably need -moz-border-image. It allows you to set border-width so you can do something like

-moz-border-image: url('images/tour_tab_border.gif') 0 0 27 0 stretch stretch;

如果您只需要一个底部边框,并且所有其他属性相同。

if you need only a bottom border, and the same for all other properties.

这篇关于CSS属性border-bottom-image不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆