border

how can I change toolstripmenuitem border color?

一笑奈何 提交于 2020-02-28 06:11:12
问题 I made a form like this (language c# - VisualStudio2012): http://i.stack.imgur.com/5GEY1.jpg How can I change the border color of toolstripmenuitem from white to another, or disable it ? code: class CustomProfessionalColors : ProfessionalColorTable { public override Color MenuItemSelected { get { return Color.FromArgb(51, 51, 52); } } public override Color MenuBorder { get { return Color.Black; } } //fill màu item của menu khi mouse enter public override Color MenuItemSelectedGradientBegin {

Scrollbar track thinner than thumb

一个人想着一个人 提交于 2020-02-27 23:18:39
问题 I am trying to style a scrollbar using css and I want to achieve the following look (ignore the background): In other words, I want the thumb to be thicker than the track, which I only want to be a line. I have researched this and found solutions for people wanting to do the opposite, that is a thumb smaller than the track, but no way of achieving what I want. As an alternative option, I have thought about maybe using the border-right property with some sort of negative offset, but again no

左边div固定宽度,右边div自适应撑满剩下的宽度--实现方法汇总

邮差的信 提交于 2020-02-27 22:17:51
神奇的事 其实有的方法(float、position、margin、flex)是有border像素的差 代码如下: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>神奇的事</title> <style> section { margin: 50px 0; } h3 { color: red; text-align: center; /*padding: 10px;*/ background: yellowgreen; } /*<!--------------NO.1做法(使用float)---------------->*/ .use-float .left { float: left; width: 12%; border: 2px solid salmon; } .use-float .right { overflow: hidden; border: 2px solid seagreen; } /*<!----------------------------------------->*/ /*<!--------------NO.2做法(使用table)---------------->*/ .use-table{ border-collapse:collapse;/*合并表格*/

outlook客户端不显示table表格边框线的问题

徘徊边缘 提交于 2020-02-27 19:05:11
问题 今天做了一个发送邮件提醒的功能, outlook网页版、foxmail客户端显示的邮件都是正常的,能够正常显示table表格边框,但是outlook客户端不能够显示table表格边框。 outlook客户端显示如下: 解决 之前只给table上加了 border:1px,改成给每一个 td 都加上 border 属性即可。 <table style='width: 95%;border-collapse:collapse;border:1px solid #000000' cellpadding='0' cellspacing='0' > <tr> <td style='border:1px solid #000000' bgcolor='#cococo'>加班日期</td> <td style='border:1px solid #000000' bgcolor='#cococo'>加班时长</td> </tr> <tr> <td style='border:1px solid #000000'>2020-02-24</td> <td style='border:1px solid #000000'>5.0</td> </tr> </table> 来源: CSDN 作者: 程序媛-如花 链接: https://blog.csdn.net/chengxuyuanruhua

css如何解决border的重叠问题

孤街浪徒 提交于 2020-02-27 15:39:52
我现在在做一个ul列表,然后给每个li加上边框,但是加完了之后,相邻列表的边框就会变成2px,比如第一个li的下边框和第二个li的上边框就会重叠在一起,请问这有什么办法解决一下么? 解决方法是: 试试给li在样式中指定margin-top:-1px; 这样两个边框就可以重叠在一起了. 新问题: 不过我现在这个li是加了hover的,就是鼠标悬停就会边框变色,这样一来,每个变色的只会是上左右三条框,下边框被盖住,看不出效果了~~~~ li { border:1px solid #FF0000; margin-top:-1px; } li:hover { border:1px solid #0000FF; position:relative; z-index:2; } 这个问题在我工作中很常见,百度搜的这种方法感觉还不错,很实用 来源: CSDN 作者: jingtian678 链接: https://blog.csdn.net/jingtian678/article/details/104536352

less语法--混合(mixins)上

*爱你&永不变心* 提交于 2020-02-27 10:54:14
普通混合 一、什么是混合? 混合就是一种将一系列属性从一个规则及集引入(“混合”)到另一个规则集的方式。 二、实例 1、less编写 .border{ color:#00f; font-family:“宋体” } h1{font-size:20px;.border} h2{font-size:20px;.border} 2、编译结果 h1{font-size:20px;color:#00f; font-family:“宋体”} h2{font-size:14px;color:#00f; font-family:“宋体”} 不带输出的混合 一、什么是不带输出的混合 如果你想要创建一个混合集,但是却不想让它输出到你的样式中 二、使用方法 在不想输出的混合集的名字后面加上一个括号,就可以实现 1、less语句 .border{color:#00f} .border-mixin(){font-family:“宋体”} h1{.border;.border-mixin} 2、编译结果 .border{color:#00f} h1{color:#00f; font-family:“宋体”} 带选择器的混合 1、less语句 .border-mixin(){ &:hover{ border:1px solid #f00 } } h1{.border-mixin()} 2、编译结果 h1

[翻译]jQuery Mobile入门教程——主题的使用和定制

独自空忆成欢 提交于 2020-02-27 07:22:19
原作: Using and customizing jQuery Mobile themes —— Matthew David 翻译: filod 转载声明:请注明原作者、翻译者以及译文链接。 在之前的文章 jQuery Mobile 入门教程 里,我对jQueryMobile的使用进行了入门介绍,你可以使用它创造出非常华丽的移动站点——漂亮的按钮、优雅的界面等等等等。 然而仅仅是这样的话,你的需求肯定不会被满足的——你或许需要给header换个颜色来配合自己公司的logo?又或者需要突出显示一下某个静音按 钮?总而言之,你需要自己控制jQueryMobile的显示效果。本文旨在介绍教大家如何在jQueryMobile构建的站点中控制主题显示的效果。 jQueryMobile的主题(theme)和调板(swatches) 很显然,jQueryMobile是用CSS来控制在屏幕中的显示效果的,而在CSS文档中又包含两个主要的部分: 结构:用于控制元素(如按钮、tab等)的在屏幕中显示的位置,内外边距等。 主题:用于控制可视元素的视觉效果,例如字体、颜色、渐变、阴影、圆角等。你可以通过修改主题来控制可视元素(如按钮)的效果。 注意: 为了尽量减少图片的使用(目的是减少请求数),jQueryMobile使用了css3的方式来替代传统的图片方式创建按钮等控件。当然用图片来设计也可以

用CSS代码写出的各种形状图形的方法

三世轮回 提交于 2020-02-27 00:43:08
一共收集整理了图形20个,比较实用,同时也为了熟悉CSS的代码。整合了一下,有错误欢迎指出。 1.正方形 #square { width: 100px; height: 100px; background: red;} 2.长方形 #rectangle { width: 200px; height: 100px; background: red;} 3.左上三角 #triangle-topleft { width: 0; height: 0; border-top: 100px solid red; border-right: 100px solid transparent; } 4.右上三角 #triangle-topright { width: 0; height: 0; border-top: 100px solid red; border-left: 100px solid transparent;} 5.左下三角 #triangle-bottomleft { width: 0; height: 0; border-bottom: 100px solid red; border-right: 100px solid transparent; } 6.右下三角 #triangle-bottomright { width: 0; height: 0; border-bottom

博客园样式(仿简书)

↘锁芯ラ 提交于 2020-02-26 20:13:30
成品图 成品链接 设置流程 博客园  →  管理  →  设置  →  博客皮肤  →  SimpleMemory 页面定制CSS代码 禁用模板默认css不用勾选 body { background: none; } .postTitle { border-bottom: 0px solid #969696; border-left: 0px solid #969696; color: #969696; display: inherit; font-size: 18px; font-weight: 700; line-height: 1.5; padding: 0; } .postTitle a:link, .postTitle a:visited, .postTitle a:active { color: #969696; font-family: -apple-system,SF UI Display,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif; } .postTitle a:hover{ color: #646464; text-decoration: underline; } .c_b_p_desc { margin: 0 0 8px; font-size

前端基础之jquery

旧城冷巷雨未停 提交于 2020-02-26 04:56:44
知识预览: 什么是jQuery 什么是jQuery对象 寻找元素(选择器和赛选器) 操作元素(属性,css,文档处理) 扩展方法 参考资料: jQyery中文文档 回到顶部 一 jQuery是什么? jQuery由美国人John Resig创建,至今已吸引了来自世界各地的众多 javascript高手加入其team。 jQuery是继prototype之后又一个优秀的Javascript框架。其宗旨是——WRITE LESS,DO MORE! 它是轻量级的js库(压缩后只有21k) ,这是其它的js库所不及的,它兼容CSS3,还兼容各种浏览器 jQuery是一个快速的,简洁的javaScript库,使用户能更方便地处理HTMLdocuments、events、实现动画效果,并且方便地为网站提供AJAX交互。 jQuery还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。 回到顶部 二 什么是 jQuery 对象? jQuery 对象就是通过 jQuery 包装 DOM 对象后产生的对象。 jQuery 对象是 jQuery 独有的 . 如果一个对象是 jQuery 对象 , 那么它就可以使用 jQuery 里的方法 : $(“#test”).html(); $("#test").html() 意思是指