小编Dub*_*one的帖子

奇怪的"未捕获的TypeError:字符串不是函数"错误

我正在尝试运行一个简单的函数.

function assify(ass) {
    window.location.href(ass);
}
Run Code Online (Sandbox Code Playgroud)

我遇到的参数是 assify?id=2

我不断收到错误(Uncaught TypeError: String is not a function)

这里出了什么问题?

谢谢!

javascript

3
推荐指数
1
解决办法
6085
查看次数

如何在图像旁边对齐多行文本而不将其包裹在下面?

我已经成功地将一行文本与图像(小提琴)对齐.

<div class="profile-details-wrapper">
  <img class="profile-picture" src="http://placehold.it/50x50" />
  <span class="profile-details">
    username
  </span>
</div>
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试添加另一行文本时,它会包裹在图像下(小提琴).

<div class="profile-details-wrapper">
  <img class="profile-picture" src="http://placehold.it/50x50" />
  <span class="profile-details">
    username
    <br />
    username
  </span>
</div>
Run Code Online (Sandbox Code Playgroud)

如何使多行文本超出旁边图像的高度,但不会在其下面换行?

奖金问题:我如何垂直对齐呢?

html css twitter-bootstrap twitter-bootstrap-4 bootstrap-4

3
推荐指数
1
解决办法
2281
查看次数