/*==========限制图片大小======避免页面撑暴========*/img {
max-width:100%;width:expression(width>669?"100%":width+"px");}--说明 .content
img { max-width:100%;width:e...
分类:
Web程序 时间:
2014-05-27 01:38:06
阅读次数:
292
CSS命名规范CSS样式命名整理页面结构容器: container/wrap 整体宽度:wrapper
页头:header 内容:content 页面主体:main 页尾:footer 导航:nav 侧栏:sidebar 栏目:column
中间内容:center导航导航:nav 导航:mainba...
分类:
Web程序 时间:
2014-05-27 01:32:59
阅读次数:
374
常用的CSS命名规则头:header内容:content/container尾:footer导航:nav侧栏:sidebar栏目:column页面外围控制整体佈局宽度:wrapper左右中:left
right center登录条:loginbar标志:logo广告:banner页面主体:main热...
分类:
Web程序 时间:
2014-05-27 01:25:49
阅读次数:
405
1 2 3
当content内容多时,即使parent设置了高度100%或auto,在不同浏览器下还是不能完好的自动伸展。解决方案如下:1 2 3 4
在层的最下方产生一个高度为1的空格,可解除这个问题。 另外还有这样写的:或者。
分类:
其他好文 时间:
2014-05-27 00:44:54
阅读次数:
253
背景 主要代码 发送按钮的监听器:phone_number_editText =
(EditText) findViewById(R.id.phone_number_editText); sms_content_editText =
(EditText) findViewById(R....
分类:
移动开发 时间:
2014-05-19 14:49:49
阅读次数:
335
Unity3d 镜面反射
网上能找到的基本上是固定管道或表面渲染的shader,
特此翻译为顶点、片段渲染的Shader,
本源码只涉及shader与cs部分,
Editor部分使用NGUI绘制的,
请自行下载NGUI
unity3d 版本:v4.3.1...
分类:
其他好文 时间:
2014-05-18 18:32:29
阅读次数:
389
package com.dhy.phonedial;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflate...
分类:
移动开发 时间:
2014-05-18 15:58:42
阅读次数:
342
MainActivity如下:
package cc.cn;
import java.util.HashMap;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import com.android.volley....
分类:
移动开发 时间:
2014-05-18 15:18:31
阅读次数:
297
var dialog = art.dialog({
title: '欢迎',
content: '欢迎使用artDialog对话框组件!',
icon: 'succeed',
follow: document.getElementById('btn2'),
ok: function(){
this.title('警告').content('请注意artDialog两秒后将关闭!').l...
分类:
Web程序 时间:
2014-05-18 04:14:13
阅读次数:
411
MainActivity如下:
package cc.y;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.os.Bundle;
import and...
分类:
移动开发 时间:
2014-05-18 03:54:44
阅读次数:
365