float 为什么只有中文才能实现文字的环绕效果,打英文为什么不行呢?
发布网友
发布时间:2022-04-06 13:42
我来回答
共2个回答
热心网友
时间:2022-04-06 15:12
你试试这样,图片自己替换
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.one{
width:500px;
height:500px;
border:1px solid #f00;
}
img{
width:100px;
height:100px;
float:left;
margin:10px;
}
</style>
</head>
<body>
<div class="one">
dddddddddddddddddddddd
<img src="8.jpg" width="100" height="100" alt="" />
da dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffada dafda adfa adadaffa
</div>
</body>
</html>
效果如下:
热心网友
时间:2022-04-06 16:30
如果是一连串字母是不可以,但是如果是一连串的英文单词是可以的