html下拉框换行,HTML列表框换行文本

limited text

$(document).ready(function(){

var l=$(".main div").text();

var store=new Array();

var i=0;

$(".main div").each(function(){

l=$(this).text().length;

store[i]=$(this).text();

i++;

if(l>200){

var a=$(this).text().slice(0,190);

$(this).text(a);

var d=$(this).addClass("after");

}

});

$(".main div").click(function(){

var id=$(this).attr("id");

$(this).text(store[id-1]);

var d=$(this).removeClass("after");

});

});

.main div { width:500px;word-wrap:break-word; background-color:#9CF; margin:5px; border:2px solid black}

.after:after{content:"...";}

The oldest classical Greek and Latin writing had little or no spaces between words or other ones, and could be written in boustrophedon (alternating directions). Over time, text direction (left to right) became standardized, and word dividers and terminal punctuation became common. The first way to divide sentences into groups was the original paragraphos, similar to an underscore at the beginning of the new group.[3] The Greek paragraphos evolved into the pilcrow (¶), which in English manuscripts in the Middle Ages can be seen inserted inline between sentences. The hedera leaf (e.g. ☙) has also been used in the same way.
In ancient manuscripts, another means to divide sentences in into paragraphs was a line break (newline) followed by an initial at the beginning of the next paragraph. An initial is an oversize capital letter, sometimes outdented beyond the margin of text. This style can be seen, for example, in the original Old English manuscript of Beowulf. Outdenting is still used in English typography, though not commonly.[4] Modern English typography usually indicates a new paragraph by indenting the first line. This style can be seen in the (handwritten) United States Constitution from 1787. For additional ornamentation, a hedera leaf or other symbol can be added to the inter-paragraph whitespace, or put in the indentation space.
A second common modern English style is to use no indenting, but add vertical whitespace to create "block paragraphs". On a typewriter, a double carriage return produces a blank line for this purpose; professional typesetters may put in an arbitrary vertical space by adjusting leading. This style is very common in electronic formats, such as on the World Wide Web and email.
How such documented are actually stored depends on the file format. For example, HTML uses the

tag as a paragraph container. In plaintext files, there are two common formats. Pre-formatted text will have a newline at the end of every physical line, and two newlines at the end of a paragraph, creating a blank line. An alternative is to only put newlines at the end of each paragraph, and leave word wrapping up to the application that displays or processes the text (if it is even necessary).

enter code here

click on any paragraph...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 在Vue中实现下显示的方法有多种。其中一种方法是通过设置父元素的flex-wrap属性为nowrap,然后将所选内容的宽度变小,例如设置max-width为90px。具体代码如下所示: ```html <style scoped lang="scss"> /deep/ .el-select__tags-text { max-width: 90px; } /deep/ .el-select__tags { flex-wrap: nowrap; } </style> ``` 这样设置之后,下框中的选项内容就会自动显示了。\[2\]另外,你也可以根据具体的需求进调整,例如修改max-width的值来控制的宽度。希望这个解决办法对你有帮助。 #### 引用[.reference_title] - *1* [vue鼠标停留下框选项显示悬浮信息,CSS两列多](https://blog.csdn.net/qq_40960038/article/details/113782768)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [使用Vue+ElementUI的下菜单多选时,文本内容过长导致显示溢出自动](https://blog.csdn.net/weixin_43768573/article/details/127959437)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [一种实现 Vue Element 自带搜索栏后不的方法](https://blog.csdn.net/li_dian_jin/article/details/122054779)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值