CSS, j's single line, multi-line text overflow display ellipsis, css ellipsis
In the project, the vertical length of the initial Page is too long due to excessive description texts, which also reduces the utilization of the remaining information. Therefore, when there are too many texts, it is necessary to initialize the limit on the number of lines.
1. CSS single-line text overflow, displaying
Original: Ellipsis:function (value, Len, word) {//Determines if value has exceeded the specified length if (value value.length > Len) { The role of //word is to try to keep a whole word from being partially omitted if (word) { var vs = Value.substr (0, len-2), //guessing the word's bounds index = Math.max (Vs.lastindexof ("), Vs.lastIndexOf (' . '), Vs.lastindexof ('! '), Vs.lastindexof ('? ')); /Keep a tolerance length len-15, too short words, affect the performance effect if (Index!==-1
Due to the need for naming in the code, I have compiled a common Chinese-English table of punctuation marks.
Punctuation in Chinese and English tables
Symbol
English
Chinese
.
Period or full stop
Period
,
Comma
Comma
:
Colon
Colon
;
Semicolon
Semicolon
。
Exclamation mark
Exclamation
In Linux, enter the punctuation marks-general Linux technology-Linux technology and application information. The following is a detailed description. In Linux, inputting punctuation marks is really not as convenient as in windows. I used to open openoffice and find the punctuation I want to use in it. I just read a post on the Forum and mentioned the question of
Here is an example of a single-line text overflow Here is an example of a single-line text overflow Here is an example of a single-line text overflow Here is an example of a single-line text overflow hereHere is an example of a multiline text overflow here is an example of a multiline text overflow here is an example of a multiline text overflow here is an example of a multiline text overflowHere is an example of a multiline text overflow here is an example of a multiline text overflow here is a
Sets the maximum Textview length. If the length exceeds the display ellipsis, The textview ellipsis is displayed.
Where
Android: singleLine = "true" android: maxEms = "8" android: ellipsize = "end"/* hwq2.com */
Critical
Recommended: http://www.cnblogs.com/roucheng/p/androidwujie.html
To work with a document, you need to divide the comment section of a TXT document (such as a user comment) into each line of comments before and after all of its punctuation. Such as:Shuai Fu Ward, mobile phone animation. old Hu Sifan, is to the Russian side.Processed into:Shuai Fu Ward cell phone animation old Hu Sifan is on the Russian sideThis makes it easier for Python to further manipulate the text. There are usually the following two types of
in the work often encountered a lot of special punctuation, such as Chinese punctuation, English punctuation. English punctuation is easier to filter, while filtering Chinese punctuation is more troublesome. Here's how to filter special symbols from messages for reference. H
People who are familiar with search engines know that when using search keywords can be Chinese, English and digital mix, can also be one or more words, phrases, short words and sentences, but only can not search punctuation.
Eason Chan, a renowned Hong Kong music artist, recently produced a stunning album named "?". This seemingly simple punctuation, it sums up the richness of life has been indescribable
Google has updated its search results and will display search results for punctuation marks and other symbols. Search symbols include commas, question marks, periods, percent signs, and so on, and these results will be returned in the search results, although they are not always very relevant, as shown in the following figure.
The search results of the punctuation mark change the results of the se
This article mainly introduces how to implement regular expression matching of Chinese punctuation marks in JavaScript, which involves simple use techniques for JavaScript regular expression matching and determination, for more information about how to use JavaScript regular expressions to match Chinese punctuation marks, see the following example. We will share this with you for your reference. The details
Word-break:break-all;The purpose of this statement is to allow the statement to wrap when it reaches the boundary, but it is this style that allows the punctuation to run to the beginning of the line.Grammar:Word-break:normal | Break-all | Keep-allParameters:Normal: Allow line wrapping in words according to Asian and non-Asian language text rulesBreak-all: The behavior is the same as in Asian languages. Also allows non-Asian-language text lines to be
Method one, in fact, we usually play a period, commas and single quotes several common symbols is very simple. Just hold down the SHIFT key on the keyboard + the symbol on the keyboard to be typed. Of course, hold shift+ (1-10) can also play some symbols. such as siren, exclamation number, etc. As shown in the following illustration:
Method Two, if these symbols you feel is not ideal, do not find the necessary symbols, it can be found through the soft keyboard input method, such as Sogou input
. Unicodeblock is a simple range of values (some of which may have "empty numbers" of characters that have not been assigned).
2. Characters in a unicodescript may be dispersed in multiple unicodeblock;
3. A character in a unicodeblock may be drawn into multiple unicodescript.
Distinguish Chinese punctuation marks.
Because the Chinese punctuation mark mainly exists in the following 5 Unicodeblock,
U2000-gen
Label:Original: WPF Technology Touch screen Application series (ii): Embedded Baidu Map, API calls and the implementation of custom punctuation on the map with local databaseLast year a customer unit to do a large-screen touch screen application, to display the file resources. The client is the WINDOW7 operating system, 54 inch large screen computer TV integrated machine. Requirements have a very bright display effect, to have a certain visual impact,
6.4.6 PunctuationGrammar1. One of the following[ ] ( ) { } . + + +-- * +-~!/% = *=/=%= + = = Semantic2, a punctuation mark is a symbol, with independent grammatical and semantic meaning. Depending on the context, it can specify an action to be performed (which in turn produces a value or a function specifier, which produces a side effect, or a combination of these), in which case it is recognized as an operator (Other forms of the operator also ex
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.