Discover bootstrap thumbnail class, include the articles, news, trends, analysis and practical advice about bootstrap thumbnail class on alibabacloud.com
The following simple to write a picture processing class, features include: watermarks, thumbnails and so on.However, there are two ways to generate thumbnails: one is to compress the pictures directly proportionally, and the other is to cut and then compress the images first. In my opinion, the difference between compression and cropping compression is:and other examples of compression: to ensure that the picture of the width and length of reasonable
This article mainly introduces the PHP implementation can add watermark and generate thumbnail image processing tool class, involving PHP for image display, preservation, compression, watermark and other related operations skills, need to friends can refer to the next
The example of this article describes the PHP implementation can add watermarks and generate Thumbnails image processing tool
Public Class Classuppic
Private Vpicfile as System.Web.UI.HtmlControls.HtmlInputFile
Private vsmallpicsize, vupfilesize as Integer
Private Vuppicpath, Vnewpicname, vtmppicname as String
Private picmin, Picmax, Vpicmax as System.Drawing.Image
Private Picformat as System.Drawing.Imaging.ImageFormat
Private MinHeight, MinWidth as Decimal
Private Myfile as IO. File
Public Sub New (ByVal picfile as System.Web.UI.HtmlControls.HtmlInputFil
btn-*: Other styles (*Can bedefault/primary/success/info/warning/danger/Link [make the button look like a link]/lg/sm/xs/Block [block-level button, stretched to 100% of the width of the parent element]/active/disabled)Image
img-*: Image style (*Can beRounded [rounded corner 6px]/Circle [circle]/Thumbnail [Add the padding and a gray border]/responsive)Auxiliary class
BootstrapIn addition toactive/success/in
This article mainly and everybody introduced thinkphp frame page class and Bootstrap page (beautify), need friend can refer to, hope can help to everybody.
Bootstrap how to use the style here to write the link content
2. Related Controller code
All public function All_news () { $Article =m ("article"); $where [' Article_type ']=1; The total numbe
Text text colorIf the text is a link, the text is dimmed when you move the mouse over the linked text. text-muted: Grey. Text-primary: Light Blue. Text-success: Green. Text-info: Dark blue. text-warning: Orange. Text-danger: RedText position. Text-left: Text left Justified. Text-center: Text Center alignment. text-right: Text right-alignedWrap text. text-justify: Text alignment, out of screen part text wrapping. TEXT-NOWRAP: Paragraph beyond the screen part does not wrapText case. text-lowercase
1. Contextual text colorFonts in various shadesPclass= "text-muted">Bootstrap Video TutorialP>Pclass= "Text-primary">Bootstrap Video TutorialP>Pclass= "Text-success">Bootstrap Video TutorialP>Pclass= "Text-info">Bootstrap Video TutorialP>Pclass= "Text-warning">Bootstrap Vide
Solve Some css class conflicts between bootstrap and easyUI ., Bootstrapeasyui
Today, we found that the css classes of bootstrap and easyui have repeatedly used a very stupid solution. Such a trivial issue cannot be searched on the Internet.
I first reference bootstrap and then reference the easy UI.
Original:bootstrapSome of the auxiliary classes that may come in handy in Bootstrap. textThe following different classes show different text colors. If the text is a link the mouse moves to the text that is dimmed:
class
Description
. text-muted
Text styles for the "text-muted" class
. text-prima
Bootstraprow
Cause:
The page is laid out using the Bootstrap raster system. The class col-xs-* has a 15px padding on the left and right. The class has an img element that you want to display on the top side, in this case, you need to add an additional style to the col-xs-* Class: padding: 0px;
If a row
In the Bootstrap grid system (source code) There is this paragraph,[class*= "Span"] { float:left; Margin-left: @gridGutterWidth;}To run with recess, you'll see a hint:Universal selectors should be avoided。 This can be said to be a selector problem, but also can be said to be a recess problem, but can be run at the time of adding a parameter ignored.When you write the extension yourself, you will write sim
Base class
. code to display single-line inline code. Pre to display multi-line block code. kbd to display user input code. pre-scrollable height exceeds 340px, scroll bar appears on Y axis
Form class
. table base table margin-bottom:20px, light gray solid line at thead bottom 2px, light gray solid line at the top of each cell. table-striped: Zebra table, interlaced with a light gray background color. ta
Cause:The page is laid out using the Bootstrap raster system. The Class col-xs-* has a 15px padding on the left and right. The class has an img element that you want to display on the top side, in this case, you need to add an additional style to the col-xs-* class: padding: 0px;If a row
active disabled
pageBasic class PaperAlign left to previousAlign next to the rightThe color becomes pale disabled
labelBase class labelCosmetic Cosmetic Label-default,label-primary,label-success,label-info,label-warning,label-dangerCoat of arms badge
Page TitleBasic Class Page-header
thumbnail ImageBasic
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.