border

四款好看实用的CSS表格样式分享

青春壹個敷衍的年華 提交于 2019-12-30 23:56:45
文章参考: https://www.w3cschool.cn/css/css-sfrk2opy.html https://www.php.cn/css-tutorial-375461.html https://www.laozuo.org/2040.html   为了让用户拥有更好的阅读体验,将文章中数据以更直观的方式展示是非常必要的,因此,拥有良好的表格设计就显得非常重要了。下面,w3cschool就和大家分享4款好看且实用的CSS表格样式。 —— CSS快速入门    1. 单像素边框CSS表格   这是一个简单但是常用的表格样式。    源代码: <!-- CSS goes in the document HEAD or added to your external stylesheet --> <style type="text/css"> table.gridtable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #666666; border-collapse: collapse; } table.gridtable th { border-width: 1px; padding: 8px; border

Vertical border between floating DIVs using CSS

為{幸葍}努か 提交于 2019-12-30 18:06:16
问题 I have the following HTML structure <div id='parent'> <div id='child-1'>Some text goes here</div> <div id='child-2'>Different text goes here</div> <div class='clear'></div> </div> I also have the following CSS #parent { width: 800px; position: relative; } #child-1 { width: 500px; float: left; } #child-2 { width: 200px; float: left; } .clear { clear: both; } Now, the contents of the child DIVs ( child-1 and child-2 ) could be anything, so eventually child-1 might have longer height than child

Box with Arrow top and Border

雨燕双飞 提交于 2019-12-30 11:51:35
问题 I'm just going to create a box on the edge has an arrow. I have quite often tried but unfortunately relevant solution. I naturally inquired on the Internet and on the website, but unfortunately without success. So it should look after: the arrow should have the same border like the box and the same backgroundcolor So it looks now .arrow-up { width: 10px; height: 10px; margin-top: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid gray; }

CSS3 image frame-border z-index

ⅰ亾dé卋堺 提交于 2019-12-30 11:08:36
问题 I have the following markup for my images: img.framed { border-image: url('../images/design/frame.png') 40 40 40 40 stretch stretch; border-color: #f4be52; border-style: inset; border-width: 40px; } And I am getting this result: I don't like, that image inside frame overrides part of my frame. How can I modify my code to get frame displayed over the image? Like that: 回答1: Some part of the image would have to be hidden to create what you want. Create the main div that has your image, and

Change the style of WinForm border?

若如初见. 提交于 2019-12-30 10:45:28
问题 Is it possible to change the style of a WinForm border? I know that if the border is removed, it takes away the functionality to resize the program. Therefore is there a way to change the style of it, but keep it resizable? 回答1: What you seek is not simple because the border is drawn by the operating system. However, there is a library on CodePlex that does make possible to do this very thing. Drawing Custom Borders in Windows Forms 回答2: First write this in the InitializeComponent(): public

What is a good way to write CSS for multiple borders? [duplicate]

雨燕双飞 提交于 2019-12-29 18:39:11
问题 This question already has answers here : How can I get multiple borders with rounded corners? CSS (8 answers) Closed 8 months ago . I am trying to build multiple borders which are getting faded around the user image. I am writing the CSS like this, but this won't help: width: 90px; border-radius: 50%; box-shadow: inset 0 0 0 4px #eee, inset 0 0 0 8px #ddd, inset 0 0 0 12px #ccc, inset 0 0 0 16px #bbb, inset 0 0 0 20px #aaa, inset 0 0 0 20px #999, inset 0 0 0 20px #888; But it doesn't give the

jQuery基础

不羁岁月 提交于 2019-12-29 15:11:41
1-1 环境搭建 搭建一个jQuery的开发环境非常方便,可以通过下列几个步骤进行。 下载jQuery文件库 在jQuery的官方网站(http://jquery.com)中,下载最新版本的jQuery文件库。在网站中找到最新版本文件的下载按钮,将jQuery框架文件下载到本地即可,本教案使用的版本为稳定版:1.9.0版。 引入jQuery文件库 下载完jQuery框架文件后,并不需要任何的安装,仅需要使用<script>文件导入标记,将jQuery框架文件导入页面中即可,假设该文件下载后保存在项目文件夹Jscript中,那么,在页面的<head></head>中加入如下代码: <script language="javascript" type="text/javascript" src="1.9.0/jquery.js"></script> 在页面的头部分,加入上述代码后,便完成了jQuery框架开发环境的搭建,就可以开始我们的jQuery学习了。 任务 我来试试: 点击页面中的按钮,你可以让隐藏的DIV显示出来。 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>初识jQuery</title> 5 <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text

jquery之实例应用

不问归期 提交于 2019-12-29 06:55:49
  Query是一个兼容多浏览器的javascript库,核心理念是write less,do more(写得更少,做得更多),对javascript进行了封装,是的更加便捷的开发,并且在兼容性方面十分优秀。 http://www.php100.com/manual/jquery/ 选择器与筛选器系列  模态框 a{ text-decoration: none; color: #428bca; } .modal-backdrop{ position: fixed; top:0; right:0; bottom:0; left:0; z-index: 1040; background-color: #000000; opacity:0.8 } .modal{ position: fixed; top:50%; left:50%; z-index: 1050; max-height: 500px; overflow: auto; width: 560px; margin: -250px 0 0 -280px; background-color: #ffffff; border: solid 1px #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; } .modal-header{ padding:

Input with border for half height

时间秒杀一切 提交于 2019-12-29 04:50:28
问题 I need to create an input text box with a bottom border and the side borders should span half the height of the input on left and right. Is there an easy way to design this in CSS ? Image is show below: 回答1: Maybe this could be an elegant solution. If you use background then you can specify really nicely where what goes and it improves readability a bit. input[type="text"] { padding: 10px; background: linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);

Python自动化开发课堂笔记【Day13】 - 前端补充(HTML & CSS)

寵の児 提交于 2019-12-29 01:25:09
伪类 1. anchor伪类:专用于控制链接的显示效果 a:link(没有接触过的链接),用于定义了链接的常规状态。 a:hover(鼠标放在链接上的状态),用于产生视觉效果。 a:visited(访问过的链接),用于阅读文章,能清楚的判断已经访问过的链接。 a:active(在链接上按下鼠标时的状态),用于表现鼠标按下时的链接状态。 伪类选择器 : 伪类指的是标签的不同状态:        a ==> 点过状态 没有点过的状态 鼠标悬浮状态 激活状态 a:link {color: #FF0000} /* 未访问的链接 */ a:visited {color: #00FF00} /* 已访问的链接 */ a:hover {color: #FF00FF} /* 鼠标移动到链接上 */ a:active {color: #0000FF} /* 选定的链接 */ 格式: 标签:伪类名称{ css代码; } <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .top{ background-color: rebeccapurple; width: 100px; height: 100px; } .bottom{ background-color: green