border

css partial border to create 'place holder'

China☆狼群 提交于 2020-05-11 12:59:52
问题 Using CSS, how can I create a partial border as per image below I can get the complete border with: border: 1px solid #f5f5f5; but only want to show maybe 30px at the top and botton of the vertical border with nothing imbetween? can this be acheived? Thanks as always, 回答1: There is a CSS solution, but it's complicated and also requires HTML markup: #box { width: 200px; height: 200px; margin: 30px; position: relative; } #box > div.corner { display: block; position: absolute; width: 50px;

css partial border to create 'place holder'

安稳与你 提交于 2020-05-11 12:59:44
问题 Using CSS, how can I create a partial border as per image below I can get the complete border with: border: 1px solid #f5f5f5; but only want to show maybe 30px at the top and botton of the vertical border with nothing imbetween? can this be acheived? Thanks as always, 回答1: There is a CSS solution, but it's complicated and also requires HTML markup: #box { width: 200px; height: 200px; margin: 30px; position: relative; } #box > div.corner { display: block; position: absolute; width: 50px;

How to put border around textview?

[亡魂溺海] 提交于 2020-04-19 08:57:39
问题 border.xml (in drawable folder) <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/ res/android"> <stroke android:width="2dp" android:color="#000"/> <corners android:radius="10dp" /> <padding android:left="10dp" android:top="5dp" android:right="10dp" android:bottom="5dp"/> </shape> </selector> activity_main.xml <TextView android:id="@+id/textView" android:layout_width="100dp" android

How to put border around textview?

被刻印的时光 ゝ 提交于 2020-04-19 08:57:19
问题 border.xml (in drawable folder) <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/ res/android"> <stroke android:width="2dp" android:color="#000"/> <corners android:radius="10dp" /> <padding android:left="10dp" android:top="5dp" android:right="10dp" android:bottom="5dp"/> </shape> </selector> activity_main.xml <TextView android:id="@+id/textView" android:layout_width="100dp" android

border-radius + background-color == cropped border

我是研究僧i 提交于 2020-04-07 12:37:50
问题 Consider a div with the border-radius , border , and background-color CSS attributes applied: <div style="background-color:#EEEEEE; border-radius:10px; border: 1px black solid;"> Blah </div> Now consider a similar layout but with the background-color specified in an inner-div: <div style="border-radius:10px; border: 1px black solid;"> <div style="background-color:#EEEEEE;"> Blah </div> </div> I'm dismayed by the fact that the background-color of the inner <div> is obscuring the border of the

border-radius + background-color == cropped border

荒凉一梦 提交于 2020-04-07 12:36:47
问题 Consider a div with the border-radius , border , and background-color CSS attributes applied: <div style="background-color:#EEEEEE; border-radius:10px; border: 1px black solid;"> Blah </div> Now consider a similar layout but with the background-color specified in an inner-div: <div style="border-radius:10px; border: 1px black solid;"> <div style="background-color:#EEEEEE;"> Blah </div> </div> I'm dismayed by the fact that the background-color of the inner <div> is obscuring the border of the

算法第二天温故知新之小和问题、荷兰国旗问题和随机快排

不打扰是莪最后的温柔 提交于 2020-04-07 02:19:07
1、小和问题 # 引申自归并排序 import random def merge_sort(arr): res = merge_fun1(arr) for i in range(0, len(arr)): arr[i] = res[i] return arr def merge_fun1(arr): if len(arr) < 2: return arr mid = len(arr) // 2 left_arr = merge_fun1(arr[:mid]) right_arr = merge_fun1(arr[mid:]) res = [] left_point, right_point = 0, 0 global little_sum while left_point < len(left_arr) and right_point < len(right_arr): if left_arr[left_point] < right_arr[right_point]: little_sum += (len(right_arr) - right_point) * left_arr[left_point] res.append(left_arr[left_point]) left_point += 1 else: res.append(right_arr[right_point])

css属性标签大全

倾然丶 夕夏残阳落幕 提交于 2020-04-07 00:55:13
css属性标签大全 标签: css transition scroll filter border float 2011-07-12 12:54 4692人阅读 评论 (0) 收藏 举报 版权声明:本文为博主原创文章,未经博主允许不得转载。 CSS样式属性 1、字体属性(type) font-family(使用什么字体) font-style(字体的样式,是否斜体):normal/italic/oblique font-variant(字体大小写):normal/small-caps font-weight(字体的粗细):normal/bold/bolder/lithter font-size(字体的大小):absolute-size/relative-size/length/percentage 2、颜色和背景属性(backgroud) color(定义前景色,例如:p{color:red}) background-color(定义背景色) background-image(定义背景图片) background-repeat(背景图案重复方式):repeat-x/repeat-y/no-repeat background-attachment(设置滚动):scroll(滚动)/fixe(固定的) background-position(背景图案的初始位置):percentage

文本框提示输入

妖精的绣舞 提交于 2020-04-06 00:21:22
1 var fbp = false; 2 $("#groupsjname").live("focus",function() { 3 $(this).css("border", "1px solid #4489d1"); 4 fbp = true; 5 if ($(this).val() == "" || $(this).val() == "输入商家名称") {$(this).val(""); } 6 }).blur(function(){ 7 if ($(this).val() == "" || $(this).val() == "输入商家名称") {$(this).val('输入商家名称');} 8 fbp = false; 9 if ($(this).val().replace(/\s+/g, "").length > 0) { 10 $(this).css("border", "1px solid #4489d1"); 11 } 12 else { 13 $(this).css("border", "1px solid #cecece"); 14 } 15 }).hover(function() { 16 $(this).css("border", "1px solid #4489d1"); 17 }, function() { 18 if (fbp) { 19 $

基于.NetCore3.1搭建项目系列 —— 使用Swagger导出文档 (番外篇)

a 夏天 提交于 2020-04-05 18:45:33
前言 回顾之前的两篇 Swagger做Api接口文档 ,我们大体上学会了如何在net core3.1的项目基础上,搭建一套自动生产API接口说明文档的框架。 本来在Swagger的基础上,前后端开发人员在开发生产期间,可以借此进行更加便捷的沟通交流。可是总有些时候,遇到一些难缠的,又不讲道理,偏偏觉得将Swagger文档地址丢给客户会不够正式!死活要一份word文档。 可是这个时候,如果接口数量上百个,甚至更多,一个一个手动输入word,那将是一笔耗时的工作。但却有什么办法可以解决呢? 对了,利用Swagge生成的Json文件转换为word文档不就可以了吗? 思路 1. 获取Swagger接口文档的Json文件 2. 解析Json文件数据填充到Html的表格中 3.根据生成的html转work文档 模板 文档模板 URL /api/Movie/AddMovie 请求方式 Post 参数名 参数类型 是否必填 说明 id Query False 影视ID Name Query False 电影名称 Type Query False 电影类型 状态码 说明 200 Success 示例 请求参数 返回值 开始 一、根据Swagger版本获取Json数据 1.通过Swagger源码文件可以看到 可以拿到swagger生成的文档数据