Line feed display of long strings
For Chinese characters, long strings are not a problem. The browser can use a correct line feed, but for English characters, it may break through the width of the container and affect the appearance. The solution
1. This Code is the subject that processes long strings. Void itemdatabound (Object sender, datagriditemeventargs E)
{
// Get the string to be displayed
String title = getthestring ();
// Returns the updated text for the specified Column
String
Help! Phpmysqlinsert long strings cannot be inserted. the statement is as follows: $ SQL & nbsp ;=& nbsp; "INSERT & nbsp; INTO & nbsp; '{$ table-& gt; column_list_page}' & nbsp; set & nbsp; nI help! Php mysql insert long strings cannot be
The page gets the string data too long, causing the displayed table to be arranged in an untidy format, which is to be displayed after processing a string that is too long in the table.Method One: (Other blogs See the method)JS
Questions:
How to generate empty lines in PHP using the Echo method to output long strings to a Web page?Dutylist[2]=[new Array ("Teaching director", "9"), new Array ("deputy director of Teaching", "ten"), New Array ("Class teacher", "one"), new
String concatenationIs required by all programming languages. When splicing results are long, how to ensure efficiency becomes a very important issue.
The strcat function of C language directly operates on the memory, which is naturally the most
Mobile platform with two-dimensional code to deal with, about the two-dimensional code, there is a good article recommendedAt present I want to implement a function, scan QR code implementation, when using the scan Code app to go to the software
Sometimes we enter a long list of numbers in an Excel table, but it doesn't work out, which is annoying, so how do we display these long strings of numbers "6217001630005541399"? The following small series for you to introduce, to see it!
Recently, the company's customer service submitted a BUG saying that some of the products could not be updated while updating the product details. Some of them have been unavailable for a while, so they are temporarily put down. This problem has
We often need to display a text description on a line. Due to the uncertainty of the width of the web page, we can adjust the width of the text to support the page or fold it into many lines. By using CSS, we can limit the width of a row and hide
Example: callback
Automatic line breaks cannot be processed. The table is extended for a long time, but Chinese characters can be automatically wrapped.
The reason is:If there is no space between English letters, the system considers it a word
Page | string
Use table and div to do page layout design, encounter large size pictures and long English string, layout defined in the size will be destroyed, resulting in page layout deformation.
Is there any way to solve it?
The CSS attribute
Public static string stringformat (string str, int n){////// Format the stringThe length. The ellipsis is displayed in the excess part, Indicating Chinese characters and letters. Two Chinese characters, one letter or Digit///String temp = string.
Considering that many browsers are not compatible with CSS, text-overflow is used to crop strings with "... ", there are also solutions to provide full compatibility on the Internet, but there is no direct way to process strings in the background.
1. Intercept through CSS. However, we need to differentiate IE, ff, and other browsers.
2. Intercept through custom methods
Public
Static
String
[] Intercept (
String
Input,
Int
P){String [] strinput
=
New
String [
When using TABLE and DIV for page layout design, the size defined in the layout will be damaged in case of large images and long English strings, resulting in page layout deformation.Is there a solution?The OVERFLOW: hidden attribute of CSS can be
In general, for long , as long as it is in the TD outside, to avoid nowrap and other words, it can achieve automatic line feed.
However, for a relatively long string of English letters, it cannot be implemented only by relying on the wrap parameter
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.