随笔分类 - html/css/js
摘要:http://www.zhangxinxu.com/study/201012/jquery-power-float-demo.html
阅读全文
摘要:jQuery-Select-TestjQuery获取Select选择的Text和Value:选择一项试试看语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text();//获取Select选择的Text3. var checkValue=$("#select_id").val();//获取Sel
阅读全文
摘要:css控制表格居中:<div style='text-align:center;'> <table style='margin:0px auto;'> </table> </div>文字中间加空格特别适于xhtml页面,发现在jsf里面用 不没效果 的,只能用css啦如果文字是固定不变的,用下面的方法设定中间的宽度就好了<div><span style="padding-right:10px;">文</span><span>字<
阅读全文