<div id="shizijia"></div>

#shizijia {
  margin-left:80px;
  background:blue;
  height:130px;
  position:relative;
  width:18px; 
}
#shizijia:after {
  background:green;
  content: "";
  height: 18px;
  left: -55px;
  position: absolute;
  top:50px;
  width: 130px;
}

①. 宽度不够时,字体会换行.

②. 强制不换行,文本不会换行,文本会在在同一行上继续,直到遇到br标签为止.

white-space: nowrap;
阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: CSS