Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 环绕图像的文字无效_Css_Xhtml - Fatal编程技术网

Css 环绕图像的文字无效

Css 环绕图像的文字无效,css,xhtml,Css,Xhtml,正如标题所说,试图使文本环绕图像。。。不知道为什么不起作用,目前有: .flagimages{ position: relative; left:6px; top:200px; } .flagimages img{ background-image:url("imagelink.png"); background-repeat:no-repeat; position:absolute; float:right; right:20p

正如标题所说,试图使文本环绕图像。。。不知道为什么不起作用,目前有:

.flagimages{
    position: relative; 
    left:6px;
    top:200px;
}
.flagimages img{
    background-image:url("imagelink.png");
    background-repeat:no-repeat;
    position:absolute;
    float:right;
    right:20px;
    top:20px;
}

如果有人能告诉我哪里出了问题,请记住这是经过评估的工作=)

这就是你要找的吗?

CSS


位置:绝对位置
浮动:右
?你能分享你的标记吗?你正在使用
。flagimages img
在这个场景中
img
是类还是HTML标记?试着把它用于这个css-->。flagimages{position:relative;margin left:6;margin top:200px;}。flagimages img{background image:url(“imagelink.png”);背景重复:无重复;位置:绝对;右侧:20px;顶部:20px;}nope=[]=[]不起作用@rohit azad
.container {
    width: 500px;
    height: 400px;
    border: 1px solid black;
    overflow: hidden;
}
.flagimages{
   float: right;
}
.flagimages img{
  width: 100px;
  height: 80px;
}
.clearme {
    clear: left;
}