2016-08-02 21 views
1

此DOM对象没有应用于它的特定类选择器,所以我无法通过CSS选择它。boomla:如何在图像上放置文字

enter image description here

我可以使用一些第一胎黑客或更改/apps/page/.Class/*文件,但我不喜欢或者是一个干净的解决方案。

我想在它前面有一些图像。 我应该修改我的页面的HTML吗?我也可以更改减价或文本(应用程序)的CSS,但它不像一个整洁的解决方案。 我也认为有图像作为背景图片,那么生活会很容易:)

什么是最好的解决方案?

这里就是我: image placed on my website

谢谢!

回答

0

您应该创建一个html-1内容并应用一些CSS。

下面是你应该与他们的[文件类型]创建文件:

content [html-1] 
content/style.css [css-1] 
content/style.css/background.png [image-1] 

content文件存储您的HTML:

<div class="-container"> 
    <div class="-text">Hello world</div> 
</div> 

style.css文件可能然后应用背景图像和让你的文字更漂亮:

.-container { 
    height: 400px; 
    background: url(background.png) no-repeat center center transparent; 
} 
.-text { 
    color: red; 
    font-size: 3em; 
    text-align: center 
    line-height: 400px; 
} 

(该图片的URL将由css-1应用程序扩展。)