想了解样式表 [英] want to know about style sheet
本文介绍了想了解样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过样式表和边框设置图像
how to set image through style sheet and border
.class_name
{
backgroud-image:url(?????);
border:??;
}
推荐答案
尝试此链接
w3schools.com [
try this link
w3schools.com[^]
CSS
.imgborder
{
backgroud-image:url(image.gif);
border:1px solid black;
}
HTML
HTML
<div class="imgborder">blah blah blah blah blah blah</div>
<pre lang="css">.class_name {
background-image: url(http://www.xyz.com/abc.gif);
//or
background-image: url(pics/cssT/smallPic.jpg);
background-repeat: repeat-x;
}</pre>
这篇关于想了解样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文