margin

登录验证( cookie三次锁定)

南楼画角 提交于 2019-12-09 11:12:27
思路 1.接受值判断是否为空 2、登录错误大于三次时,判断时间是否过期 3、判断登录的错误次数 4.查询数据判断是否成功,不成功次数+1,大于三次设置cookie给个过期时间(方便上面的调用) 登录的表单页面 <form action="{:url('login/login')}" method="post"> <table border="0" style="width:370px; font-size:14px; margin-top:30px;" cellspacing="0" cellpadding="0"> <tr height="50" valign="top"> <td width="55"> </td> <td> <span class="fl" style="font-size:24px;">登录</span> <span class="fr">还没有商城账号,<a href="{:url('login/regist')}" style="color:#ff4e00;">立即注册</a></span> </td> </tr> <tr height="70"> <td>用户名</td> <td><input type="text" name="username" value="" class="l_user" /></td> </tr> <tr height="70

QSplitter show a divider or a margin between the two widgets

烂漫一生 提交于 2019-12-09 11:11:29
问题 I have a QSplitter and two widgets on either side, but I want to be able to have a margin, so that there is a clear transition between the two widgets. I looked in QSplitter and QSplitterHandle but dont see any explicit way of doing this. How do I add a divider between the two widgets? 回答1: Style sheets are a powerful mechanism for changing the appearance of any widget in Qt. See here for a quick tutorial, and here for a reference guide. Style sheets can be assigned using an editor in the

android add padding between radiogroup buttons programmatically

给你一囗甜甜゛ 提交于 2019-12-09 09:27:30
问题 I have a radiogroup in xml, and the buttons are generated programmatically. How do I add spacing between the buttons programmatically. I thought it was something like LayoutParams but my object doesn't come with an obvious setPadding or setMargins method. This is what I was trying RadioButton currentButton = new RadioButton(context); currentButton.setText(item.getLabel()); currentButton.setTextColor(Color.BLACK); //add padding between buttons LayoutParams params = new LayoutParams(context,

博客皮肤自定义设置

≯℡__Kan透↙ 提交于 2019-12-09 09:25:37
不得不说博客园自带的皮肤并不能满足所有人的审美。。。 好在博客园支持皮肤修改和自定义, 你如果学过html和css的话完全可以把界面玩出花来。。 没学过css的萌新也不用慌,按照下面的步骤做,可以拥有跟我一样风格的界面哦 第一步   去设置里点修改皮肤,找到simple memory这个皮肤模板,设为默认。   把禁用css模板的勾去掉(如果有的话)。 第二步   复制下面的css代码黏贴到页面定制css里,然后保存。 body { color: #000; background: url(https://img2018.cnblogs.com/blog/1440658/201809/1440658-20180904200409197-941112516.jpg) fixed; background-size: cover; background-repeat: repeat; font-family: "微软雅黑","Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 12px; min-height: 101%; } #blogTitle h1 { font-size: 50px; font-family: Consolas; font-weight: bold; font-style: italic;

博客园的自定义皮肤

和自甴很熟 提交于 2019-12-09 09:25:28
在折腾的好一阵之后,慢慢的对于园子的样式定制有了一些心得。最终借助李宝亨大大的牛气自定义皮肤终于翻身做主人了。 感觉好帅的说,下面简单写一下,具体定义皮肤的方式吧。 一、选择博客园模板 要选择一个在默认的模板中,对于样式定义较少的模板,这样才对于我们自定义的样式冲击比较小。毕竟园子现在还没有完全开放样式,模板的定义。除非大牛,将设计的模板上传。 目前被用于自定义样式使用最多的就是“LessIsMore”这个模板了,应该是这个模板中原式的CSS样式非常少吧。 二、设置博文正文的样式 样式定义的一个最重要的部分,就是对于文章内部的样式定义,好的样式定义能够让文章的内容和形式让人看起来更加清爽易懂哦。 在后台的“常用设置”选项卡中,找到自定义正文的样式的地方。 加入自定义的CSS代码,并且勾选“禁用默认CSS” 具体代码如下: /*公用*/ body { font-size:15px; padding:0; margin:0; font-family:"微软雅黑","宋体",Arial; background:#205424 url('http://mat1.gtimg.com/www/mb/theme/qqfs/one_lhj/wrapBg.jpg') no-repeat top center fixed; min-width:1200px; } #home { opacity: 0

WPF(x:Key 使用)

十年热恋 提交于 2019-12-09 04:44:23
<Window x:Class="TestOfKey.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <sys:String x:Key="myString">Hello WPF Resource!</sys:String> </Window.Resources> <StackPanel Background="Gray" > <TextBox Text="{StaticResource ResourceKey=myString}" Margin="5" /> <TextBox x:Name="textBox1" Margin="5" /> <Button Content="Show" Click="ButtonClick" Margin="5" /> </StackPanel> </Window> using System; using

Weather with you主题说明

我只是一个虾纸丫 提交于 2019-12-08 21:44:39
使用前请确保拥有js权限!!! 源代码: css: /*广告去死*/ #ad_t2 { display: none !important; } #i-amphtml-fill-content { display: none !important; } #i-amphtml-replaced-content { display: none !important; } #i-amphtml-replaced-content { display: none !important; } #img_ad { display: none !important; } /************************************************** 第一部分:所有的模板都使用的公共样式。公告样式是为了更好的向前和向后兼容。 如果不符合你皮肤的要求,你可以在后面通过更高的优先级覆盖着这些样式,但是 你不能删除这些样式。 **************************************************/ #EntryTag { margin-top: 20px; font-size: 9pt; color: gray; } .topicListFooter { text-align: right; margin-right: 10px; margin-top:

css清除浮动影响

孤街醉人 提交于 2019-12-08 20:57:38
将清除浮动代码添加到重置样式表中,随时可以调用 1 .clearfix{margin-right:auto;margin-left:auto;*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both} 给需要清除浮动影响的元素添加class名 --- clearfix 例: 1 <!-- css --> 2 <style> 3 .top { 4 width: 100%; 5 height: 200px; 6 background-color: yellow; 7 } 8 .middle .content { 9 float: left; 10 margin-top: 20px; 11 width: 100px; 12 height: 400px; 13 background-color: blue; 14 } 15 .clearfix {margin-right:auto;margin-left:auto;*zoom:1} 16 .clearfix:before,.clearfix:after {display:table;content:"";line-height:0} 17 .clearfix:after{clear

鼠标移入文字上向右移动效果

微笑、不失礼 提交于 2019-12-08 20:56:32
例子1: <style> h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; } a { outline: none; color: #21759b; } a:link { color: black; margin-left: 10px; text-decoration: none; } a:visited { color: black; text-decoration: none; } a:hover { color: #21759b; } a:active { color: black; text-decoration: none; } .postTitle { border-left: 12px solid #21759b; margin-bottom: 10px; font-size: 20px; width: 100%; } .postTitle a:link, .postTitle a:visited, .postTitle a:active { color: #21759b; transition: all 0.4s linear 0s; } .postTitle a:hover { margin-left: 30px; color: #0f3647; text-decoration: none

div won't center with margin: 0 auto;

旧街凉风 提交于 2019-12-08 18:14:01
问题 My problem is simply centering a div. At the moment, I just have a bare bones html file. I have no idea why margin: 0 auto isn't working. Here is the layout of my html: <style type="text/css"> #header { width: 100%; margin: 0 auto 20px auto; height: 50px; background-color: #0F6; } #navigation { width: auto; float: right; margin: 0 auto; display: inline-block; } #content { background-color: #936; margin: 0 auto; width: 960px; position: relative; min-width: 720px; max-width: 960px; } footer {