如何添加Powered by:在横幅广告上?

时间:2018-06-02 20:41:38

标签: html css

示例:Ads by: Google

这是横幅广告css,在此横幅广告中我想在左上角添加(广告:mysite.com)

 .mybannerads {
    display: block;
    position: absolute;
    top: 65%;
    bottom: 5px;
    left: 5px;
    right: 5px;
    padding-bottom: 1%;
    background: transparent;
    z-index: 1000;
    max-width: 100%;
    max-height: 100%;
    width:inherit;
    height:inherit; 
}

1 个答案:

答案 0 :(得分:1)

假设您只想在CSS中执行此操作,可以使用:before伪元素,然后相应地设置样式。

.mybannerads:before {
    content: "Ads by: mysite.com";
}