Briefly list the factors to consider when designing navigation menus
1. Full menu navigation based on images means that the font size of the menu cannot be adjusted for the person with amblyopia... In addition, you must create an image each time
ArticleDirectory
Element background range
Set all background attributes in a declaration.
You can set the following attributes in sequence:
Background-color
Background-Image
Background-repeat
Background-Attachment
The prompt box with a triangular arrow is shown below:
This is a prompt box
We usually use images to implement the small triangle above, because it is convenient and fast, but if the image processing is not good, it will look like there are
According to CSS specifications, float will be removed from the document stream, without affecting the layout of block boxes, but only the arrangement of inline boxes (usually text. Therefore, when its height exceeds the container, the parent
If you encounter a bug when designing the layout with CSS, please read the following content carefully, which is very easy to remember. I don't know which of the following experts compiled the CSS bug into a smooth one! Please remember?
1. If the
During floating layout, most people know that floating cleaning is necessary: .For example: some content Preview thisCodeThe parent element float container of the outermost layer is not displayed. This is because the child element is floating and
Use the label and span label to combine a complete rounded rectangle through the left and right alignment of the background. Then use the hover label to slide the image.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://
Inspired by a's colleagues, I also made a little thing.
Although editplus is very small and fast, it is a pity that it does not supportCodeAnd now PHP, CSS, and HTML are all using Aptana.
Today, I took a look at editplus.User tool, which can be
1. Use filter for IE and PNG background image for non-ie browsers See the followingCode:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Filter: alpha (opacity = 50 );/*IE*/ -Moz-opacity: 0.5; /*
Retrieves or sets how to manage content when the content of an object exceeds its specified height and width.The default value of all objects is visible, except that the default value of textarea object and body object is auto. Set the textarea
(1)Use text-indent:-9999px;
However, he has a limitation that he only applies to block-level element blocks.And sometimes we want to offset the font on.So the question comes.Text-indent:-9999px; although easy to useIf a is converted into a block,
Coffeescript + HTML5 + less is a new combination. It seems that less is easier to win. Try sugar first.
Less so small thing, unexpectedly to overturn the wall, it is really not rational, simply unreasonable, No matter so much first, then look at
CSSAn outline is a line drawn around an element. It is located at the periphery of the border edge and can highlight an element.
The outline attribute is a short attribute used to set the outlines around an element.
Note: The contour line does
ArticleDirectory
Before any project or system development, you need to customize a development convention and rules, which is conducive to unified overall style of the project,CodeMaintenance and expansion. As web project
Table{Table-Layout:Fixed;}TD{White-space:Nowrap;Overflow:Hidden;Text-Overflow:Ellipsis;}
Principle:
This method is used to solveTable CellThe appearance of too much content mainly involves four CSS styles:
1.Table-layout: fixedBecause
Bug description when the CSS font-size: 100% of the element class Percentage value, we will get an incorrect value.
What is this value? You may have guessed it. Yes, the clientwidth * Percentage of the parent container.
This is because of
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service