我想给下面代码的颜色给定大小,这意味着我可以给图像背景给定大小,但我也想给背景颜色#e5e5e1
给定大小,我该怎么做?
background:url("masjedol-aghsa-small.png") no-repeat scroll 0 0 #e5e5e1; opacity: 0.9;
它是我的php/html
代码:
<div class="spacetitlebox faseleyebala col-sm-6">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('box1') ) : ?>
<?php endif; ?>
</div>
我不确定我是否真的理解你的意思,但是。。我认为您应该使用一个"div"标记,它包含您的图像背景,并为div提供您想要的大小。
试试这个:
<div class="spacetitlebox faseleyebala col-sm-6">
<div style="background-color :#e5e5e1">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('box1') ) : ?>
<?php endif; ?>
</div>
</div>