提示中提示hint.css手动换行 [英] hint.css manual line break in hint

查看:331
本文介绍了提示中提示hint.css手动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Hint.css 提示中应用手动换行符?



我尝试了几乎所有内容:< br>,\\\
及其组合。



我也在CSS中尝试了一些东西:

  white-space:normal; 
word-wrap:分词;
word-wrap:no-wrap;
word-wrap:break-word
white-space:nowrap;

现在:没有换行符,提示是一行高,但和任何长度。



理想情况下:在我需要的位置应用手动换行符,留下不带换行符的未触及提示。

解决方案

找到答案: $ b

https://github.com/chinchang/hint.css/issues/24



实际操作:

  [http://jsfiddle.net/gVPty/] [2] 


How can I apply manual line breaks in Hint.css hints?

I tried almost everything: <br>, \n, and combinations of them.

I tried also some things in the CSS:

white-space: normal;
word-wrap: break-word;
word-wrap: no-wrap;
word-wrap:break-word
white-space: nowrap;

Now: Without line break, the hint is one line high, but and any length long.

Ideally: Apply a manual line break wherever I want, leaving the untouched hints without line breaks.

解决方案

Found the answer at:

https://github.com/chinchang/hint.css/issues/24

In action:

[http://jsfiddle.net/gVPty/][2]

这篇关于提示中提示hint.css手动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆