-- 1. the query distinguishes between fullwidth and halfwidth characters.-- Test DataDeclare @ t table (COL varchar (10 ))Insert @ t select 'A'Union all select 'A'Union all select 'A' -- fullwidthUnion all select 'a, A' -- fullwidth A, halfwidth comma (,)Union all select 'a, A' -- fullwidth A, fullwidth comma (,)
-- 1. query uppercase lettersSelect * From @ tWhere Col collate chinese_prc_cs_as_ws like '% A %'
-- ResultAA
-- 2. query full-width l
ASP full-width half-width Conversion Function
When flag =-1, the halfwidth is converted to fullwidth.
When flag is set to 0, the half-width rotation is performed.
When flag is set to 1, the full angle is converted to the half angle.
CopyCode The Code is as follows: Function dbc2sbc (STR, flag)
Dim I, SSTR
If Len (STR) Dbc2sbc = ""
For I = 1 to Len (STR)
SSTR =
Remaining div fill width, div fill width
Today, we met on the page. The front div is fixed with the width and the back is filled with the horizontal width. It should be very useful to search for it.
The Code is as follows:
Recently I am doing a personal webpage, in a DIV inserted Baidu Map API, then the problem comes, because Baidu map generated is fixed size, if the Web page with mobile phone side open, will find some map can not see, in order to solve this problem, I handle div width is always equal to the width of the parent Div, This is normal.Code:-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border
Today, a smart solution solves the "Difficult Problem" that has not been solved for two years, such as the title.
This problem is very troublesome. The usual solution is double left floating (float: Left ;), then, use the private properties of IE for the width of the right bar (the screen width minus the Left bar and the browser border). Generally, the OA system uses IE, but even if it is based on differen
Scenario One: Use Padding-left to reserve space, the left side of the label, the right width equivalent to 100% of the parent element Scenario Two: Set floating on the left and no width on the right CSS layout left width fixed, right width adaptive
There are experts on bi that specialize in this layout approach, but he uses more hack and avoids the IE6 DTD. In practice, I find that avoiding the IE6 DTD definition will cause the Ajax modal box to be centered (vs. a control that automatically generates code that is difficult to modify). So I wrote a simple layout of the left and right two columns, useless to what hack, very simple, just practicing use.
CSS code: Left and right are stuck to the left-hand side. Set left on right (Z-index), Ne
CSS Left fixed width right adaptive width summary
Two div side-by, left width fixed, right adaptive. My left side is the navigation bar, and the right side is divided into two parts.
Entire page:
html,body{
margin:0px;
height:100%;
}
1, the left navigation bar, the use of position:absolute;
. main-sidebar{
Position:absolute;
top:0;
left:0
Working principle
#wrapper必须触发hasLayout, or sometimes the contents of the inside will float strange, I directly with float, can be in other ways. In fact, if only to achieve this example to the effect of even #wrapper can not.#left定义100% width and use margin:0 0 0-200px the left block on the left 200px, then use the #innerleft margin:0 0 0 200px to get the content out,#right只是简单的浮动, #innerRight米多大作用, only habitually retained, in addition to making
This article illustrates the method of JS to realize text box width adaptive text width. Share to everyone for your reference. Specifically as follows:
A JS code that automatically increases the width of the characters in the input text box. When we enter a character in a text box, if the width of the text box is too
A layout can have float, and position (absolute positioning and relative positioning) to set, here is not much introduction, but to introduce other layout types
Two
Note that this percentage cannot be 100% or more than 100% because many of the elements here have their own default properties.
Here the right column will be based on the size of the browser's window itself, in the CSS only need to set the right column width. Note that this is
Compress the image according to the specified width (the size of the image after compression will also be compressed), and the width is equal
$ NewWidth = 600;
$ File_path = 'd:/myWorkspace/get_img/deal_img/jiaShuiYin/1.jpg ';
$ NewName = 'd:/myWorkspace/get_img/deal_img/jiaShuiYin/2.jpg ';
ResizeImage ($ newWidth, $ file_path, $ newName );
/*Function: compress an image according to the specified
Base64 URL Image CSSThe Data URI scheme is defined in the RFC2397SVG path line width: stroke-widthOnline Base64 encryption/decryption Link:So what is this? This is the data URI scheme.The data URI scheme is defined in RFC2397 to embed some small data directly into a Web page, eliminating the need to load it from an external file. For example, the above string of characters, is actually a small picture, the characters copied and pasted into the address
I've tried to find a lot of puzzling problems by replacing them with ASCII and other characters. In the end, replace the following characters, and make a list of all the full corners you can find now.
Copy CodeThe code is as follows:
/**
* Full-width characters converted to half-width
*
* @param string $str
* @return String
*/
Public Function Sbc2dbc ($STR)
{
$arr = Array (
' 0 ' = ' 0 ', ' 1 ' = ' 1 ', '
And it's swiper problem again.Background:PC-side project, REM layout, swiper as a step bar (previous step, next) functionality.The change in the window size caused by drag on the screen, wide height change, will cause Swiper to automatically slide (to the next step).When downloading the file link back slightly caused a slight change in width and height, resulting in a direct slide to the next step.Chrome browsing when you close the download on the bot
I recently made a document report. Because the customer requires that the printing paper have special rules and many table columns, but the entire report should not exceed 200mm in width, I want to adjust it in any way.
However, problems are still found. For example, the two strings "TG20111020001" and "blog garden programmer's house" are strings of the string type, the same width is set to 15mm, but the ef
JQuery sets the method to specify the width and height of webpage elements. jquery width
This example describes how jQuery sets the width and height of a webpage element. Share it with you for your reference. The specific implementation method is as follows:
I hope this article will help you with jQuery programming.
When the table width is fixed, the content is automatically wrapped and the width is automatically wrapped.
Sometimes, when there are too many columns and a large amount of content in a table, some columns are often picked out based on the business meaning of each column and their width is narrowed.
But there are always exceptions. For example, if there is a pi
[Css Interview Questions] The Three divs require horizontal alignment. The width of the left and right divs is fixed to PX, and the middle DIV is filled with the remaining width (at least two methods). div100px
This is a problem I encountered during an interview with a company. I didn't answer it !!
So you must pay attention to your friends !!
Change the browser width
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.