码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
12 Bitmap缩放
1 public Bitmap zoomImage(Bitmap bgimage, double newWidth, 2 double newHeight) { 3 // 获取这个图片的宽和高 4 float width = bgimage.getWidth(); 5 float height = ...
分类:其他好文   时间:2016-04-13 18:33:41    阅读次数:118
WPF 实现指定UI控件截图
using System.Windows.Media.Imaging; using System.IO; private void SaveToImage(FrameworkElement ui, string fileName, int width, int height) { try { S..... ...
分类:Windows程序   时间:2016-04-13 12:54:59    阅读次数:676
css悬浮右侧悬浮
<html><head><title>CSSDemo</title><style type"text/css"> .hover-right-css{ background-color:orange; width:100px; height:100px; position:fixed;/*fixed总 ...
分类:Web程序   时间:2016-04-13 02:10:41    阅读次数:237
Bootstrap3写的红色警告框样式组件
用的是BT3的类和fa的图标 <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width initial-scale=1"> <link ...
分类:其他好文   时间:2016-04-12 19:31:11    阅读次数:140
RadioGroup和Radiobutton
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa ...
分类:其他好文   时间:2016-04-12 19:16:23    阅读次数:120
WPF:解决DataGrid横向滚动条无法显示的问题
DataGrid的最后一列的宽度设置为“Width=”auto””即可。 如果显示指定长度或者设置为“*”,那么不管怎么拖动列头,或者不管行里面的内容有没有超过DataGrid的显示区域,DataGrid的横向滚动条都不会显示出来。 转载声明:本文转载至http://www.cnblogs.com/ ...
分类:Windows程序   时间:2016-04-12 19:14:15    阅读次数:345
Activity中操作xml布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ ...
分类:其他好文   时间:2016-04-12 19:04:17    阅读次数:141
代码空间项目 -- alert窗口自定义
function z_alert(msg){ //创建提示框盒子,设置盒子的css样式 var msgBox=document.createElement("div"); msgBox.style.width="300px"; msgBox.style.borderRadius="5px"; msg ...
分类:其他好文   时间:2016-04-12 12:43:26    阅读次数:109
CSS3实战之box-sizing
一般我们都认为border和padding都包含在width或height之内。 而现代标准的浏览器一般都认为width和height仅仅包含content,刨去了border和padding区域。 它有两个值可以取 1.content-box:width/height = border + pad ...
分类:Web程序   时间:2016-04-12 01:44:09    阅读次数:190
UIView+Extension方便在开发时快速修改视图的位置大小
在做iOS开发时,我们经常需要设定某个控件的大小,位置,通常我们采用的方法是用CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>);来设置位置坐标,和自身的宽高,然后在赋值个控件的frame,这 ...
分类:其他好文   时间:2016-04-11 20:56:30    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!