码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
CSS background-repeat 属性
###起因>今天遇到一个问题,就是在给一个元素设置width 属性为100% 之后, 鼠标放上去之后,仍然只有部分是阴影状态,如下图所示:---经过一番思索,这TM 不就是,hover 上去的时候,背景没有盖全嘛,赶紧找相关代码 , 发现了如下代码:```.midLeft ul li:hover{ ... ...
分类:Web程序   时间:2016-05-07 23:46:01    阅读次数:1672
PHP图像处理之在原图像处理
处理原有的图像 图片处理,缩放,裁剪,翻转,旋转,透明,锐化等图片操作 一.创建图片资源 imagecreatetruecolor(width,height); gif jpg png imagecreatefromgif(图片名称); imagecreatefrompng(图片名称); image ...
分类:Web程序   时间:2016-05-07 19:45:24    阅读次数:316
js获取Html元素的实际宽度高度
情况一:宽高都写在样式表里,即外部样式或嵌入式样式,比如#div1{width:120px;}。这种情况通过#div1.style.width拿不到宽度,而通过#div1.offsetWidth才可以获取到宽度。情况二:宽和高是写在行内中,即内联式样式,比如style="width:120px;", ...
分类:Web程序   时间:2016-05-07 18:12:49    阅读次数:155
js获取智能机浏览器版本信息
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, ...
分类:Web程序   时间:2016-05-07 18:02:00    阅读次数:190
Leetcode题解14 84. Largest Rectangle in Histogram(hard)
Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each ba...
分类:其他好文   时间:2016-05-07 09:42:57    阅读次数:152
LeetCode 84. Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of ea...
分类:其他好文   时间:2016-05-07 09:13:05    阅读次数:152
Android中ListVIew高度自适应,解决ScrollView冲突问题以及Android表格
效果图 类似格式, listView_item.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" ...
分类:移动开发   时间:2016-05-07 08:43:42    阅读次数:177
JSON解析
这一篇是json解析的小案例,具体步骤如下: 第一步:写一个布局文件     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".Ma...
分类:Web程序   时间:2016-05-07 08:43:11    阅读次数:177
js 分页
#div2{ margin:0 auto; height:400px; width:800px; overflow:hidden; background:#eee; } #page{ margi...
分类:Web程序   时间:2016-05-07 08:41:35    阅读次数:183
多通道图像遍历
方法一:普通遍历 for(int y = 0;y < height; y++)//行 { for(int x = 0; x < width; x++)//列 { Scalar pix = srcImg.at(y,x); int channle0 = pix[0]; int channle1 = pix[1]; int channle2 = pix[2];...
分类:其他好文   时间:2016-05-07 08:34:01    阅读次数:108
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!