`
sric08
  • 浏览: 64445 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
在html中,引入css的方法主要有行内式、内嵌式、导入式和链接式4种 1。行内式    即在标记的style属性中设定css样式,这种方式本质上没体现出css的优势,因此不推荐使用。2。嵌入式   在对页面中各种元素的设置集中写在<hea ...

特殊的CSS

    博客分类:
  • css
div{Writing-mode:tb-rl}/*文字书写顺序*/  

层样式

    博客分类:
  • div
遮掩层   <div id="shadowDiv" style="background-color:#15428B; width: 100%; height: 100%;position:absolute;left: 0px; top: 0px;display: block;filter:alpha(opacity=0,finishopacity=50,style=2,startx=0,starty=0,finishx=500,finishy=85);">  

文本框选中部分值

    博客分类:
  • js
function selectText(txt,sIndex,eIndex){ if(txt.setSelectionRange){ txt.setSelectionRange(sIndex,eIndex); }else if(txt.createTextRange){ var range = txt.createTextRange(); range.collapse(true); range.moveStart("character",sIndex) range.moveEnd("ch ...

eval

    博客分类:
  • js
var a=function(str){ alert(str); } eval("a")("dream"); eval("a('dream')");  
  response.setContentType("text/xml; charset=UTF-8"); response.setHeader("Cache-Control", "no-cache"); out = response.getWriter(); out.println("输出信息"); //输出信息常用json对象或为json数组,当然用string也可以啦,随便你 out.flush();     返回jsonObject out.println(new JSONObject() ...
-- 查看某表有多少列 select count(column_name) from user_tab_columns where table_name=upper('ma_company');  
这是某种实现方式   <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"> <style type="text/css" id="a"> .hello { background-color: pink; } </style> <style type=& ...
固定列宽,超出部分,自动换行     <table border="solid 1px green"> <tr background="images/title_bj.gif"> <th width="27" height="33" >&nbsp;</th> <th width="160" style='word-wrap:break-word;word-break:break-all' >部门 ...
Ext.onReady(function() { new Ext.form.FieldSet({ renderTo : document.body, width:300, title : '现在时间', labelSeparator : ': ', // 分隔符 height : 75, // 在IE浏览器中就不需要,在火狐浏览器里就要,变态 layout : 'form', defaultType : 'textfield', defaults : { anc ...
 applyTo、renderTo两个属性的作用都是指定控件渲染到那个dom,他们之间到底有啥区别呢(区别肯定有的,要不不可能共存的) 我们先假设我们渲染的 dom模型为 domP为父节点,它下边有两个子节点(domc1、domc2)可能有的朋友看了不是很明白,转成DIV可能直观些   <div id="domp"> <div id="domc1"></div> <div id="domc2"></div> </div>      ...
Ext.onReady(function() { // 开启表单提示 Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'qtip'; // 设置提示信息位置为提示型,出现位置以鼠标为准 Ext.form.Field.prototype.msgTarget = 'side'; // 设置提示信息位置在边上 Ext.form.Field.prototype.msgTarget = 'title'; //html中简单的title效果 var f = new Ext.form ...
构建Ext 树,总的说来(我自己的经验)有两种 一种是dom拼接,另外种是是给树制定一个节点加载器,可以用来从服务器端动态加载树的节点信息   先来看看 dom拼接: Ext.onReady(function() { var root = new Ext.tree.TreeNode({ id : "root", text : "树的根" }); var c1 = new Ext.tree.TreeNode({ text : "子节点1" }) ...
Ext.onReady(function() { var data = [{ id : 1, name : '小王', email : 'xiaowang@easyjf.com', sex : '男', bornDate : '1991-4-4' }, { id : 2, name : '小李', email : 'xiaoli@easyjf.com', sex : '男', bornDate : '1992-5-6' }, ...
最简单的 gridPanel   Ext.onReady(function() { var data = [[1, 'EasyJWeb', 'EasyJF', 'www.easyjf.com'], [2, 'jfox', 'huihoo', 'www.huihoo.org'], [3, 'jdon', 'jdon', 'www.jdon.com'], [4, 'springside', 'springside', 'www.springside.org.cn']]; var store = new Ext.data.SimpleStore( ...
Global site tag (gtag.js) - Google Analytics