java英文单词断行,自动换行:打破单词中断到错误的div大小

我正在尝试对齐图像旁边的文本 . 我想说明没有空格的长字符串 .

我的css如下

.new_item {

width: 100%;

float: left;

border-bottom: 1px solid #990000;

margin: 0 auto;

}

.image_container {

padding: 2px 2px;

height: auto;

float: left;

width: 300px;

}

.itemdescription {

word-wrap: break-word;

display: inline;

}

包含单个长字符串的文本描述仍然被强制在image_container下面,因为(我认为)“word-wrap:break-word”将单词分解为容器的宽度 .

如何强制描述div留在图像div旁边?容器div的宽度为60%,图像总是为300px . 如何将div的大小调整为60%的重复大小?我尝试使用内联块并将相应的div浮动到左侧和右侧 .

编辑:还包括上面的容器div的CSS .

Clock

$132
image001.jpg
This early 1800's winding design uses a leaf-spring click on the spokes of the wheel, to hold the weight that runs the clock. The power of the weight is transferred to the click.

Eventually, the shock of winding caused one of the original clicks to fail at a weak point. Following the original maker's concept, a stronger replacement was made and installed.

The completed repair, ready to install - and good for another century of use. $132

Litte

$832.2
HDR1.jpg
LittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebi rdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebirdLittlebird $832.2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值